-
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.
End type parameter regex only on '>'
Fixes #452
- Loading branch information
1 parent
ac0314e
commit 632a9db
Showing
5 changed files
with
110 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,100 @@ | ||
original file | ||
----------------------------------- | ||
class Test<A, B>{} | ||
class Favorite extends Test< | ||
string | number, | ||
undefined | ||
> { | ||
// class content | ||
} | ||
----------------------------------- | ||
|
||
Grammar: TypeScript.tmLanguage | ||
----------------------------------- | ||
>class Test<A, B>{} | ||
^^^^^ | ||
source.ts meta.class.ts storage.type.class.ts | ||
^ | ||
source.ts meta.class.ts | ||
^^^^ | ||
source.ts meta.class.ts entity.name.type.class.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts entity.name.type.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts punctuation.separator.comma.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts entity.name.type.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts | ||
^ | ||
source.ts meta.class.ts punctuation.definition.block.ts | ||
^ | ||
source.ts meta.class.ts punctuation.definition.block.ts | ||
^^ | ||
source.ts | ||
>class Favorite extends Test< | ||
^^^^^ | ||
source.ts meta.class.ts storage.type.class.ts | ||
^ | ||
source.ts meta.class.ts | ||
^^^^^^^^ | ||
source.ts meta.class.ts entity.name.type.class.ts | ||
^ | ||
source.ts meta.class.ts | ||
^^^^^^^ | ||
source.ts meta.class.ts storage.modifier.ts | ||
^ | ||
source.ts meta.class.ts | ||
^^^^ | ||
source.ts meta.class.ts entity.other.inherited-class.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts | ||
^^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
> string | number, | ||
^^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
^^^^^^ | ||
source.ts meta.class.ts meta.type.parameters.ts support.type.primitive.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts keyword.operator.type.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
^^^^^^ | ||
source.ts meta.class.ts meta.type.parameters.ts support.type.primitive.ts | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts punctuation.separator.comma.ts | ||
^^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
> undefined | ||
^^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
^^^^^^^^^ | ||
source.ts meta.class.ts meta.type.parameters.ts support.type.builtin.ts | ||
^^ | ||
source.ts meta.class.ts meta.type.parameters.ts | ||
>> { | ||
^ | ||
source.ts meta.class.ts meta.type.parameters.ts punctuation.definition.typeparameters.end.ts | ||
^ | ||
source.ts meta.class.ts | ||
^ | ||
source.ts meta.class.ts punctuation.definition.block.ts | ||
^^ | ||
source.ts meta.class.ts | ||
> // class content | ||
^^ | ||
source.ts meta.class.ts punctuation.whitespace.comment.leading.ts | ||
^^ | ||
source.ts meta.class.ts comment.line.double-slash.ts punctuation.definition.comment.ts | ||
^^^^^^^^^^^^^^^^^ | ||
source.ts meta.class.ts comment.line.double-slash.ts | ||
>} | ||
^ | ||
source.ts meta.class.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,7 @@ | ||
class Test<A, B>{} | ||
class Favorite extends Test< | ||
string | number, | ||
undefined | ||
> { | ||
// class content | ||
} |