From 73bab84380bea626836d34cd0e627fa6d74ccc9d Mon Sep 17 00:00:00 2001 From: joshvera Date: Mon, 5 Feb 2018 13:40:15 -0500 Subject: [PATCH] Allow many statements in else if clauses --- src/Language/PHP/Assignment.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/PHP/Assignment.hs b/src/Language/PHP/Assignment.hs index ee39deb80..0b2394f0d 100644 --- a/src/Language/PHP/Assignment.hs +++ b/src/Language/PHP/Assignment.hs @@ -505,7 +505,7 @@ defaultStatement :: Assignment defaultStatement = makeTerm <$> symbol DefaultStatement <*> children (Statement.Pattern <$> emptyTerm <*> (makeTerm <$> location <*> manyTerm statement)) elseIfClause :: Assignment -elseIfClause = makeTerm <$> symbol ElseIfClause <*> children (Statement.Else <$> term expression <*> term statement) +elseIfClause = makeTerm <$> symbol ElseIfClause <*> children (Statement.Else <$> term expression <*> (makeTerm <$> location <*> manyTerm statement)) elseClause :: Assignment elseClause = makeTerm <$> symbol ElseClause <*> children (Statement.Else <$> emptyTerm <*> (makeTerm <$> location <*> manyTerm statement))