Skip to content

Commit 5a0c10a

Browse files
committed
Add content name for meta.jsx.children.tsx
1 parent 7dcc1ee commit 5a0c10a

File tree

5 files changed

+168
-165
lines changed

5 files changed

+168
-165
lines changed

TypeScriptReact.YAML-tmLanguage

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,7 @@ repository:
13651365
'1': {name: punctuation.definition.tag.begin.tsx}
13661366
'2': {name: entity.name.tag.tsx}
13671367
'3': {name: punctuation.definition.tag.end.tsx}
1368+
contentName: meta.jsx.children.tsx
13681369
patterns:
13691370
- include: '#jsx-children'
13701371

TypeScriptReact.tmLanguage

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,6 +2251,8 @@
22512251
<string>punctuation.definition.tag.end.tsx</string>
22522252
</dict>
22532253
</dict>
2254+
<key>contentName</key>
2255+
<string>meta.jsx.children.tsx</string>
22542256
<key>end</key>
22552257
<string>(&lt;/)([_$a-zA-Z][-$\w.]*(?&lt;!\.|-))(&gt;)</string>
22562258
<key>endCaptures</key>

tests/baselines/Issue239.baseline.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ original file
3737
^
3838
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx
3939
^^^^^^^^^^^^
40-
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx
40+
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx
4141
^^
4242
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx
4343
^
@@ -57,7 +57,7 @@ original file
5757
^
5858
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.end.tsx
5959
^^^^^^^^^^^^^^^^^
60-
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx
60+
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx meta.jsx.children.tsx
6161
^^
6262
source.tsx meta.var.expr.tsx meta.var-single-variable.expr.tsx meta.tag.without-attributes.tsx punctuation.definition.tag.begin.tsx
6363
^

0 commit comments

Comments
 (0)