From 3d04836a8a97f0640208e87c7b00708bc97cfe26 Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Fri, 10 Jan 2020 13:01:55 -0800 Subject: [PATCH] Don't detect locals on rhs --- 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 b9cba909e..ffe658a34 100644 --- a/src/Language/Ruby/Assignment.hs +++ b/src/Language/Ruby/Assignment.hs @@ -398,7 +398,7 @@ assignment' = makeTerm <$> symbol Assignment <*> children (Ruby.Syntax. assign c l r = inject (Statement.AugmentedAssignment (makeTerm1 (c l r))) lhs = makeTerm <$> symbol LeftAssignmentList <*> children (many expr) <|> expr - rhs = makeTerm <$> symbol RightAssignmentList <*> children (many expr) <|> expr + rhs = makeTerm <$> symbol RightAssignmentList <*> children (many expression) <|> expression expr = makeTerm <$> symbol RestAssignment <*> restAssign <|> makeTerm <$> symbol DestructuredLeftAssignment <*> children (many expr) <|> lhsIdent