mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Assign -=.
This commit is contained in:
parent
b8bd18e742
commit
3b54a4ebf3
@ -23,6 +23,7 @@ type Syntax' =
|
|||||||
'[Comment.Comment
|
'[Comment.Comment
|
||||||
, Declaration.Class
|
, Declaration.Class
|
||||||
, Declaration.Method
|
, Declaration.Method
|
||||||
|
, Expression.Minus
|
||||||
, Expression.Not
|
, Expression.Not
|
||||||
, Expression.Plus
|
, Expression.Plus
|
||||||
, Literal.Array
|
, Literal.Array
|
||||||
@ -84,7 +85,9 @@ statement = exit Statement.Return Return
|
|||||||
<|> until
|
<|> until
|
||||||
<|> for
|
<|> for
|
||||||
<|> literal
|
<|> literal
|
||||||
<|> symbol OperatorAssignment *> term <*> children (lvalue >>= \ var -> Statement.Assignment var <$ symbol AnonPlusEqual <*> (term <*> (Expression.Plus var <$> expression)))
|
<|> symbol OperatorAssignment *> term <*> children (lvalue >>= \ var -> Statement.Assignment var <$>
|
||||||
|
( symbol AnonPlusEqual *> term <*> (Expression.Plus var <$> expression)
|
||||||
|
<|> symbol AnonMinusEqual *> term <*> (Expression.Minus var <$> expression)))
|
||||||
where exit construct sym = symbol sym *> term <*> children (construct <$> optional (symbol ArgumentList *> children statement))
|
where exit construct sym = symbol sym *> term <*> children (construct <$> optional (symbol ArgumentList *> children statement))
|
||||||
|
|
||||||
lvalue :: Assignment (Node Grammar) (Term Syntax Location)
|
lvalue :: Assignment (Node Grammar) (Term Syntax Location)
|
||||||
|
Loading…
Reference in New Issue
Block a user