1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Assign multiple expressions wthin communication clauses

This commit is contained in:
Rick Winfrey 2017-11-15 10:06:59 -08:00
parent af63537d36
commit ee26a95330

View File

@ -625,7 +625,7 @@ selectStatement :: Assignment
selectStatement = makeTerm <$> symbol SelectStatement <*> children (Go.Syntax.Select <$> expressions)
communicationClause :: Assignment
communicationClause = makeTerm <$> symbol CommunicationClause <*> children (Statement.Pattern <$> (communicationCase <|> defaultCase) <*> (expression <|> emptyTerm))
communicationClause = makeTerm <$> symbol CommunicationClause <*> children (Statement.Pattern <$> (communicationCase <|> defaultCase) <*> (expressions <|> emptyTerm))
where
communicationCase = symbol CommunicationCase *> children expression