File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
# Similar to TypeScript.YAML-tmLanguage except:
2
- # - Remove type assertion (cast.expr.ts )
2
+ # - Remove type assertion (cast.expr.tsx )
3
3
# - Add the "as" keyword.
4
4
# - Add JSX expression (HTML-like expression).
5
5
---
@@ -389,32 +389,32 @@ repository:
389
389
- include : ' #control-statement'
390
390
391
391
switch-variable :
392
- name : switch-variable.expr.ts
392
+ name : switch-variable.expr.tsx
393
393
begin : \b(switch)\b\s*\(
394
394
beginCaptures :
395
- ' 1 ' : { name: keyword.operator.ts }
395
+ ' 1 ' : { name: keyword.operator.tsx }
396
396
end : \)
397
397
patterns :
398
398
- include : ' #expression'
399
399
400
400
switch-block :
401
- name : switch-block.expr.ts
401
+ name : switch-block.expr.tsx
402
402
begin : ' {'
403
403
end : (?=\})
404
404
patterns :
405
405
- include : ' #expression'
406
406
407
407
switch-case :
408
- name : case.expr.ts
408
+ name : case.expr.tsx
409
409
begin : ' (?<!\.)\b(case|default)\b'
410
410
beginCaptures :
411
- ' 1 ' : { name: keyword.control.ts }
411
+ ' 1 ' : { name: keyword.control.tsx }
412
412
end : ' :'
413
413
patterns :
414
414
- include : ' #expression'
415
415
416
416
switch-expression :
417
- name : switch-expr.expr.ts
417
+ name : switch-expr.expr.tsx
418
418
begin : (?=\bswitch\b\s*\()
419
419
end : ' }'
420
420
patterns :
Original file line number Diff line number Diff line change 1573
1573
<key >end </key >
1574
1574
<string >(?=\}) </string >
1575
1575
<key >name </key >
1576
- <string >switch-block.expr.ts </string >
1576
+ <string >switch-block.expr.tsx </string >
1577
1577
<key >patterns </key >
1578
1578
<array >
1579
1579
<dict >
1591
1591
<key >1 </key >
1592
1592
<dict >
1593
1593
<key >name </key >
1594
- <string >keyword.control.ts </string >
1594
+ <string >keyword.control.tsx </string >
1595
1595
</dict >
1596
1596
</dict >
1597
1597
<key >end </key >
1598
1598
<string >: </string >
1599
1599
<key >name </key >
1600
- <string >case.expr.ts </string >
1600
+ <string >case.expr.tsx </string >
1601
1601
<key >patterns </key >
1602
1602
<array >
1603
1603
<dict >
1613
1613
<key >end </key >
1614
1614
<string >} </string >
1615
1615
<key >name </key >
1616
- <string >switch-expr.expr.ts </string >
1616
+ <string >switch-expr.expr.tsx </string >
1617
1617
<key >patterns </key >
1618
1618
<array >
1619
1619
<dict >
1635
1635
<key >1 </key >
1636
1636
<dict >
1637
1637
<key >name </key >
1638
- <string >keyword.operator.ts </string >
1638
+ <string >keyword.operator.tsx </string >
1639
1639
</dict >
1640
1640
</dict >
1641
1641
<key >end </key >
1642
1642
<string >\) </string >
1643
1643
<key >name </key >
1644
- <string >switch-variable.expr.ts </string >
1644
+ <string >switch-variable.expr.tsx </string >
1645
1645
<key >patterns </key >
1646
1646
<array >
1647
1647
<dict >
You can’t perform that action at this time.
0 commit comments