mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Allow ArgumentListWithParens in call
This commit is contained in:
parent
9020f74e48
commit
31dc6121a7
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user