Skip to content

Commit 8a6051c

Browse files
committed
Correct ".ts" scope to ".tsx" scope in react files
1 parent e4d1aef commit 8a6051c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

TypeScriptReact.YAML-tmLanguage

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Similar to TypeScript.YAML-tmLanguage except:
2-
# - Remove type assertion (cast.expr.ts)
2+
# - Remove type assertion (cast.expr.tsx)
33
# - Add the "as" keyword.
44
# - Add JSX expression (HTML-like expression).
55
---
@@ -389,32 +389,32 @@ repository:
389389
- include: '#control-statement'
390390

391391
switch-variable:
392-
name: switch-variable.expr.ts
392+
name: switch-variable.expr.tsx
393393
begin: \b(switch)\b\s*\(
394394
beginCaptures:
395-
'1': { name: keyword.operator.ts }
395+
'1': { name: keyword.operator.tsx }
396396
end: \)
397397
patterns:
398398
- include: '#expression'
399399

400400
switch-block:
401-
name: switch-block.expr.ts
401+
name: switch-block.expr.tsx
402402
begin: '{'
403403
end: (?=\})
404404
patterns:
405405
- include: '#expression'
406406

407407
switch-case:
408-
name: case.expr.ts
408+
name: case.expr.tsx
409409
begin: '(?<!\.)\b(case|default)\b'
410410
beginCaptures:
411-
'1': { name: keyword.control.ts }
411+
'1': { name: keyword.control.tsx }
412412
end: ':'
413413
patterns:
414414
- include: '#expression'
415415

416416
switch-expression:
417-
name: switch-expr.expr.ts
417+
name: switch-expr.expr.tsx
418418
begin: (?=\bswitch\b\s*\()
419419
end: '}'
420420
patterns:

TypeScriptReact.tmLanguage

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@
15731573
<key>end</key>
15741574
<string>(?=\})</string>
15751575
<key>name</key>
1576-
<string>switch-block.expr.ts</string>
1576+
<string>switch-block.expr.tsx</string>
15771577
<key>patterns</key>
15781578
<array>
15791579
<dict>
@@ -1591,13 +1591,13 @@
15911591
<key>1</key>
15921592
<dict>
15931593
<key>name</key>
1594-
<string>keyword.control.ts</string>
1594+
<string>keyword.control.tsx</string>
15951595
</dict>
15961596
</dict>
15971597
<key>end</key>
15981598
<string>:</string>
15991599
<key>name</key>
1600-
<string>case.expr.ts</string>
1600+
<string>case.expr.tsx</string>
16011601
<key>patterns</key>
16021602
<array>
16031603
<dict>
@@ -1613,7 +1613,7 @@
16131613
<key>end</key>
16141614
<string>}</string>
16151615
<key>name</key>
1616-
<string>switch-expr.expr.ts</string>
1616+
<string>switch-expr.expr.tsx</string>
16171617
<key>patterns</key>
16181618
<array>
16191619
<dict>
@@ -1635,13 +1635,13 @@
16351635
<key>1</key>
16361636
<dict>
16371637
<key>name</key>
1638-
<string>keyword.operator.ts</string>
1638+
<string>keyword.operator.tsx</string>
16391639
</dict>
16401640
</dict>
16411641
<key>end</key>
16421642
<string>\)</string>
16431643
<key>name</key>
1644-
<string>switch-variable.expr.ts</string>
1644+
<string>switch-variable.expr.tsx</string>
16451645
<key>patterns</key>
16461646
<array>
16471647
<dict>

0 commit comments

Comments
 (0)