mirror of
https://github.com/github/semantic.git
synced 2024-12-30 10:27:45 +03:00
Assign Decorators with no ArgumentList
This commit is contained in:
parent
08560875b6
commit
9c9f43d4e9
@ -193,7 +193,7 @@ decoratedDefinition = symbol DecoratedDefinition *> children (makeDecorator <$>
|
||||
where
|
||||
makeDecorator (loc, partialDecorator') next = makeTerm loc (partialDecorator' next)
|
||||
partialDecorator = (,) <$> symbol Decorator <*> children decorator'
|
||||
decorator' = Declaration.Decorator <$> expression <* symbol ArgumentList <*> children (many expression <|> many emptyTerm)
|
||||
decorator' = Declaration.Decorator <$> expression <*> ((symbol ArgumentList *> children (many expression <|> many emptyTerm)) <|> many emptyTerm)
|
||||
|
||||
withStatement :: Assignment
|
||||
withStatement = makeTerm <$> symbol WithStatement <*> children (uncurry Statement.Let . swap <$> (symbol WithItem *> children ((,) <$> identifier <*> identifier)) <*> expression)
|
||||
|
Loading…
Reference in New Issue
Block a user