-
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.
Merge pull request #655 from mjbvz/fix-648
Allow underscore in jsx attribute names
- Loading branch information
Showing
6 changed files
with
145 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
original file | ||
----------------------------------- | ||
// @onlyOwnGrammar - As this has jsx | ||
<Test | ||
a='' | ||
b_c='111' | ||
d='' | ||
/> | ||
----------------------------------- | ||
|
||
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 | ||
><Test | ||
^ | ||
source.tsx meta.tag.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.tsx entity.name.tag.tsx support.class.component.tsx | ||
> a='' | ||
^^^^ | ||
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 string.quoted.single.tsx punctuation.definition.string.begin.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.tsx | ||
> b_c='111' | ||
^^^^ | ||
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 string.quoted.single.tsx punctuation.definition.string.begin.tsx | ||
^^^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.tsx | ||
> d='' | ||
^^^^ | ||
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 string.quoted.single.tsx punctuation.definition.string.begin.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.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,60 @@ | ||
original file | ||
----------------------------------- | ||
// @onlyOwnGrammar - As this has jsx | ||
<Test_Component | ||
a='' | ||
b_c='111' | ||
d='' | ||
/> | ||
----------------------------------- | ||
|
||
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 | ||
><Test_Component | ||
^ | ||
source.tsx meta.tag.tsx punctuation.definition.tag.begin.tsx | ||
^^^^^^^^^^^^^^ | ||
source.tsx meta.tag.tsx entity.name.tag.tsx support.class.component.tsx | ||
> a='' | ||
^^^^ | ||
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 string.quoted.single.tsx punctuation.definition.string.begin.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.tsx | ||
> b_c='111' | ||
^^^^ | ||
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 string.quoted.single.tsx punctuation.definition.string.begin.tsx | ||
^^^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.tsx | ||
> d='' | ||
^^^^ | ||
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 string.quoted.single.tsx punctuation.definition.string.begin.tsx | ||
^ | ||
source.tsx meta.tag.tsx meta.tag.attributes.tsx string.quoted.single.tsx punctuation.definition.string.end.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,6 @@ | ||
// @onlyOwnGrammar - As this has jsx | ||
<Test | ||
a='' | ||
b_c='111' | ||
d='' | ||
/> |
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,6 @@ | ||
// @onlyOwnGrammar - As this has jsx | ||
<Test_Component | ||
a='' | ||
b_c='111' | ||
d='' | ||
/> |