mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
Don't detect locals on rhs
This commit is contained in:
parent
9cd8717cc2
commit
3d04836a8a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user