mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +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)))
|
assign c l r = inject (Statement.AugmentedAssignment (makeTerm1 (c l r)))
|
||||||
|
|
||||||
lhs = makeTerm <$> symbol LeftAssignmentList <*> children (many expr) <|> expr
|
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
|
expr = makeTerm <$> symbol RestAssignment <*> restAssign
|
||||||
<|> makeTerm <$> symbol DestructuredLeftAssignment <*> children (many expr)
|
<|> makeTerm <$> symbol DestructuredLeftAssignment <*> children (many expr)
|
||||||
<|> lhsIdent
|
<|> lhsIdent
|
||||||
|
Loading…
Reference in New Issue
Block a user