-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle new line in variable initializer when expression ends with arr…
…ow operator Fixes #702
- Loading branch information
1 parent
9f36bf2
commit f17fefd
Showing
5 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
original file | ||
----------------------------------- | ||
const t = () => | ||
`a` | ||
----------------------------------- | ||
|
||
Grammar: TypeScript.tmLanguage | ||
----------------------------------- | ||
>const t = () => | ||
^^^^^ | ||
source.ts meta.var.expr.ts storage.type.ts | ||
^ | ||
source.ts meta.var.expr.ts | ||
^ | ||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.constant.ts entity.name.function.ts | ||
^ | ||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts | ||
^ | ||
source.ts meta.var.expr.ts keyword.operator.assignment.ts | ||
^ | ||
source.ts meta.var.expr.ts meta.arrow.ts | ||
^ | ||
source.ts meta.var.expr.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.begin.ts | ||
^ | ||
source.ts meta.var.expr.ts meta.arrow.ts meta.parameters.ts punctuation.definition.parameters.end.ts | ||
^ | ||
source.ts meta.var.expr.ts meta.arrow.ts | ||
^^ | ||
source.ts meta.var.expr.ts meta.arrow.ts storage.type.function.arrow.ts | ||
>`a` | ||
^ | ||
source.ts meta.var.expr.ts string.template.ts punctuation.definition.string.template.begin.ts | ||
^ | ||
source.ts meta.var.expr.ts string.template.ts | ||
^ | ||
source.ts meta.var.expr.ts string.template.ts punctuation.definition.string.template.end.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const t = () => | ||
`a` |