From 516c9ecaaaca49475afebd32ec7da8eaf6f983fe Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Sat, 7 Apr 2018 17:06:18 -0700 Subject: [PATCH] Fix for ruby assignment with funny places heredocs can appear --- src/Language/Ruby/Assignment.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Language/Ruby/Assignment.hs b/src/Language/Ruby/Assignment.hs index 12bf85714..f61f08d3b 100644 --- a/src/Language/Ruby/Assignment.hs +++ b/src/Language/Ruby/Assignment.hs @@ -307,7 +307,7 @@ methodCall = makeTerm' <$> symbol MethodCall <*> children (require <|> load <|> nameExpression = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children expression call :: Assignment -call = makeTerm <$> symbol Call <*> children (Expression.MemberAccess <$> expression <*> (expression <|> args)) +call = makeTerm <$> symbol Call <*> children (Expression.MemberAccess <$> expression <*> (expressions <|> args)) where args = (symbol ArgumentList <|> symbol ArgumentListWithParens) *> children expressions