-
Notifications
You must be signed in to change notification settings - Fork 130
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 #535 from uniqueiniquity/jsxFragment
Add highlighting for JSX fragment
- Loading branch information
Showing
3 changed files
with
168 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
original file | ||
----------------------------------- | ||
// @onlyOwnGrammar - As this has jsx | ||
<></>; | ||
<><span></span><><span></span></><div></div></>; | ||
|
||
<> | ||
<span>hi</span> | ||
<div> | ||
<span>inside</span> | ||
</div> | ||
</>; | ||
----------------------------------- | ||
|
||
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 | ||
><></>; | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^ | ||
source.tsx punctuation.terminator.statement.tsx | ||
><><span></span><><span></span></><div></div></>; | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^ | ||
source.tsx punctuation.terminator.statement.tsx | ||
> | ||
^ | ||
source.tsx | ||
><> | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
> <span>hi</span> | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
> <div> | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
> <span>inside</span> | ||
^^^^^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^^^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
> </div> | ||
^^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^^^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx entity.name.tag.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
></>; | ||
^^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx | ||
^ | ||
source.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx | ||
^ | ||
source.tsx punctuation.terminator.statement.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,10 @@ | ||
// @onlyOwnGrammar - As this has jsx | ||
<></>; | ||
<><span></span><><span></span></><div></div></>; | ||
|
||
<> | ||
<span>hi</span> | ||
<div> | ||
<span>inside</span> | ||
</div> | ||
</>; |