-
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.
Support the JSX Opening or self closing tag's type arguments
This handles support for microsoft/TypeScript#22415
- Loading branch information
1 parent
30a2e6b
commit aef7be5
Showing
6 changed files
with
144 additions
and
83 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
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,40 @@ | ||
original file | ||
----------------------------------- | ||
// @onlyOwnGrammar - As this has jsx | ||
<MyComponent<number> data={12} /> | ||
----------------------------------- | ||
|
||
Grammar: TypeScriptReact.tmLanguage | ||
----------------------------------- | ||
>// @onlyOwnGrammar - As this has jsx | ||
^^ | ||
source.tsx comment.line.double-slash.tsx punctuation.definition.comment.tsx | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
source.tsx comment.line.double-slash.tsx | ||
><MyComponent<number> data={12} /> | ||
^ | ||
source.tsx meta.tag.tsx punctuation.definition.tag.begin.tsx | ||
^^^^^^^^^^^ | ||
source.tsx meta.tag.tsx entity.name.tag.tsx support.class.component.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx | ||
^^^^^^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx meta.type.parameters.tsx support.type.primitive.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx | ||
^^^^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx entity.other.attribute-name.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx keyword.operator.assignment.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx meta.embedded.expression.tsx punctuation.section.embedded.begin.tsx | ||
^^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx meta.embedded.expression.tsx constant.numeric.decimal.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx meta.embedded.expression.tsx punctuation.section.embedded.end.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx | ||
^^ | ||
source.tsx meta.tag.tsx punctuation.definition.tag.end.tsx |
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 @@ | ||
// @onlyOwnGrammar - As this has jsx | ||
<MyComponent<number> data={12} /> |