1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 04:41:47 +03:00

Assign comments at the end of branches.

This commit is contained in:
Rob Rix 2017-08-14 17:57:12 -04:00
parent a2ced02795
commit 51638833df

View File

@ -470,7 +470,7 @@ conditionalExpression :: Assignment
conditionalExpression = makeTerm <$> symbol ConditionalExpression <*> children (flip Statement.If <$> expression <*> expression <*> expressions)
term :: Assignment -> Assignment
term = contextualize comment
term term = contextualize comment term <|> comment <* eof
infixTerm :: HasCallStack
=> Assignment