mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
In JavaScript, continue and break can also have trailing comments - assign them
This commit is contained in:
parent
40bf466dbb
commit
0b9d2e142c
@ -613,10 +613,10 @@ doStatement :: Assignment
|
|||||||
doStatement = makeTerm <$> symbol DoStatement <*> children (flip Statement.DoWhile <$> term statement <*> term parenthesizedExpression)
|
doStatement = makeTerm <$> symbol DoStatement <*> children (flip Statement.DoWhile <$> term statement <*> term parenthesizedExpression)
|
||||||
|
|
||||||
continueStatement :: Assignment
|
continueStatement :: Assignment
|
||||||
continueStatement = makeTerm <$> symbol ContinueStatement <*> children (Statement.Continue <$> (statementIdentifier <|> emptyTerm))
|
continueStatement = makeTerm <$> symbol ContinueStatement <*> children (Statement.Continue <$> (statementIdentifier <|> term emptyTerm))
|
||||||
|
|
||||||
breakStatement :: Assignment
|
breakStatement :: Assignment
|
||||||
breakStatement = makeTerm <$> symbol BreakStatement <*> children (Statement.Break <$> (statementIdentifier <|> emptyTerm))
|
breakStatement = makeTerm <$> symbol BreakStatement <*> children (Statement.Break <$> (statementIdentifier <|> term emptyTerm))
|
||||||
|
|
||||||
withStatement :: Assignment
|
withStatement :: Assignment
|
||||||
withStatement = makeTerm <$> symbol WithStatement <*> children (TypeScript.Syntax.With <$> term parenthesizedExpression <*> term statement)
|
withStatement = makeTerm <$> symbol WithStatement <*> children (TypeScript.Syntax.With <$> term parenthesizedExpression <*> term statement)
|
||||||
|
Loading…
Reference in New Issue
Block a user