1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Allow many statements in else if clauses

This commit is contained in:
joshvera 2018-02-05 13:40:15 -05:00
parent 1ae07e4683
commit 73bab84380

View File

@ -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))