-
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.
Handle optional fields followed by , and no type
Fixes #651
- Loading branch information
1 parent
5cfc64b
commit 94b95df
Showing
5 changed files
with
67 additions
and
6 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,56 @@ | ||
original file | ||
----------------------------------- | ||
interface DagEdge { | ||
a?, | ||
b | ||
} | ||
var a = 1; | ||
----------------------------------- | ||
|
||
Grammar: TypeScript.tmLanguage | ||
----------------------------------- | ||
>interface DagEdge { | ||
^^^^^^^^^ | ||
source.ts meta.interface.ts storage.type.interface.ts | ||
^ | ||
source.ts meta.interface.ts | ||
^^^^^^^ | ||
source.ts meta.interface.ts entity.name.type.interface.ts | ||
^ | ||
source.ts meta.interface.ts | ||
^ | ||
source.ts meta.interface.ts punctuation.definition.block.ts | ||
> a?, | ||
^^^^ | ||
source.ts meta.interface.ts meta.field.declaration.ts | ||
^ | ||
source.ts meta.interface.ts meta.field.declaration.ts meta.definition.property.ts variable.object.property.ts | ||
^ | ||
source.ts meta.interface.ts meta.field.declaration.ts keyword.operator.optional.ts | ||
^ | ||
source.ts meta.interface.ts punctuation.separator.comma.ts | ||
> b | ||
^^^^ | ||
source.ts meta.interface.ts meta.field.declaration.ts | ||
^ | ||
source.ts meta.interface.ts meta.field.declaration.ts meta.definition.property.ts variable.object.property.ts | ||
>} | ||
^ | ||
source.ts meta.interface.ts punctuation.definition.block.ts | ||
>var a = 1; | ||
^^^ | ||
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 constant.numeric.decimal.ts | ||
^ | ||
source.ts punctuation.terminator.statement.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,5 @@ | ||
interface DagEdge { | ||
a?, | ||
b | ||
} | ||
var a = 1; |