mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Allow many statements in else if clauses
This commit is contained in:
parent
1ae07e4683
commit
73bab84380
@ -505,7 +505,7 @@ defaultStatement :: Assignment
|
|||||||
defaultStatement = makeTerm <$> symbol DefaultStatement <*> children (Statement.Pattern <$> emptyTerm <*> (makeTerm <$> location <*> manyTerm statement))
|
defaultStatement = makeTerm <$> symbol DefaultStatement <*> children (Statement.Pattern <$> emptyTerm <*> (makeTerm <$> location <*> manyTerm statement))
|
||||||
|
|
||||||
elseIfClause :: Assignment
|
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 :: Assignment
|
||||||
elseClause = makeTerm <$> symbol ElseClause <*> children (Statement.Else <$> emptyTerm <*> (makeTerm <$> location <*> manyTerm statement))
|
elseClause = makeTerm <$> symbol ElseClause <*> children (Statement.Else <$> emptyTerm <*> (makeTerm <$> location <*> manyTerm statement))
|
||||||
|
Loading…
Reference in New Issue
Block a user