-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add +\- to the list to end the new expression
Fixes #673
- Loading branch information
1 parent
6e8a383
commit a34cb11
Showing
5 changed files
with
82 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,76 @@ | ||
original file | ||
----------------------------------- | ||
+new Date - 1 < 2; | ||
var abc = 'abc'; | ||
function abc2() { } | ||
----------------------------------- | ||
|
||
Grammar: TypeScript.tmLanguage | ||
----------------------------------- | ||
>+new Date - 1 < 2; | ||
^ | ||
source.ts keyword.operator.arithmetic.ts | ||
^^^ | ||
source.ts new.expr.ts keyword.operator.new.ts | ||
^ | ||
source.ts new.expr.ts | ||
^^^^ | ||
source.ts new.expr.ts entity.name.type.ts | ||
^ | ||
source.ts new.expr.ts | ||
^ | ||
source.ts keyword.operator.arithmetic.ts | ||
^ | ||
source.ts | ||
^ | ||
source.ts constant.numeric.decimal.ts | ||
^ | ||
source.ts | ||
^ | ||
source.ts keyword.operator.relational.ts | ||
^ | ||
source.ts | ||
^ | ||
source.ts constant.numeric.decimal.ts | ||
^ | ||
source.ts punctuation.terminator.statement.ts | ||
>var abc = 'abc'; | ||
^^^ | ||
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.readwrite.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 | ||
^ | ||
source.ts meta.var.expr.ts string.quoted.single.ts punctuation.definition.string.begin.ts | ||
^^^ | ||
source.ts meta.var.expr.ts string.quoted.single.ts | ||
^ | ||
source.ts meta.var.expr.ts string.quoted.single.ts punctuation.definition.string.end.ts | ||
^ | ||
source.ts punctuation.terminator.statement.ts | ||
>function abc2() { } | ||
^^^^^^^^ | ||
source.ts meta.function.ts storage.type.function.ts | ||
^ | ||
source.ts meta.function.ts | ||
^^^^ | ||
source.ts meta.function.ts meta.definition.function.ts entity.name.function.ts | ||
^ | ||
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts | ||
^ | ||
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts | ||
^ | ||
source.ts meta.function.ts | ||
^ | ||
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts | ||
^ | ||
source.ts meta.function.ts meta.block.ts | ||
^ | ||
source.ts meta.function.ts meta.block.ts punctuation.definition.block.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,3 @@ | ||
+new Date - 1 < 2; | ||
var abc = 'abc'; | ||
function abc2() { } |