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

Allow ArgumentListWithParens in call

This commit is contained in:
Timothy Clem 2017-08-01 11:40:28 -07:00
parent 9020f74e48
commit 31dc6121a7

View File

@ -288,8 +288,11 @@ methodCall = makeTerm <$> symbol MethodCall <*> children (Expression.Call <$> ex
where
args = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children (many expression) <|> pure []
call :: Assignment
call = makeTerm <$> symbol Call <*> children (Expression.MemberAccess <$> expression <*> expression)
call = makeTerm <$> symbol Call <*> children (Expression.MemberAccess <$> expression <*> (expression <|> args))
where
args = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children (expressions)
rescue :: Assignment
rescue = rescue'