File tree Expand file tree Collapse file tree 4 files changed +42
-19
lines changed Expand file tree Collapse file tree 4 files changed +42
-19
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ repository:
49
49
beginCaptures :
50
50
' 1 ' : { name: keyword.other.ts }
51
51
' 2 ' : { name: storage.type.ts }
52
- end : (?=$| [,);>]|var|type|function|class|interface)
52
+ end : (?=[,);>]|var|type|function|class|interface)
53
53
patterns :
54
54
- include : ' #type-parameters'
55
55
- name : keyword.operator.ts
56
56
match : ' =\s*'
57
57
- include : ' #type'
58
-
58
+
59
59
enum-declaration :
60
60
name : meta.enum.declaration.ts
61
61
match : (?:\b(const)\s+)?\b(enum)\s+([a-zA-Z_$][\w$]*)
@@ -92,7 +92,9 @@ repository:
92
92
begin : ' (?:\b(extends|implements))'
93
93
beginCaptures :
94
94
' 1 ' : { name: keyword.other.ts }
95
- end : \b
95
+ end : (?=\{)
96
+ endCaptures :
97
+ ' 1 ' : { name: brace.curly.ts }
96
98
patterns :
97
99
- include : ' #comment'
98
100
- include : ' #object-heritage'
@@ -504,7 +506,7 @@ repository:
504
506
505
507
logic-operator :
506
508
name : keyword.operator.arithmetic.ts
507
- match : \!|&|~|\||&&|\|\|
509
+ match : \!|&|~|\^|\ ||&&|\|\|
508
510
509
511
storage-keyword :
510
512
name : storage.type.ts
Original file line number Diff line number Diff line change 704
704
<key >logic-operator </key >
705
705
<dict >
706
706
<key >match </key >
707
- <string >\!|& |~|\||&& |\|\| </string >
707
+ <string >\!|& |~|\^|\ ||&& |\|\| </string >
708
708
<key >name </key >
709
709
<string >keyword.operator.arithmetic.ts </string >
710
710
</dict >
1008
1008
</dict >
1009
1009
</dict >
1010
1010
<key >end </key >
1011
- <string >\b </string >
1011
+ <string >(?=\{) </string >
1012
+ <key >endCaptures </key >
1013
+ <dict >
1014
+ <key >1 </key >
1015
+ <dict >
1016
+ <key >name </key >
1017
+ <string >brace.curly.ts </string >
1018
+ </dict >
1019
+ </dict >
1012
1020
<key >name </key >
1013
1021
<string >meta.object.heritage.ts </string >
1014
1022
<key >patterns </key >
1493
1501
</dict >
1494
1502
</dict >
1495
1503
<key >end </key >
1496
- <string >(?=$| [,);> ]|var|type|function|class|interface) </string >
1504
+ <string >(?=[,);> ]|var|type|function|class|interface) </string >
1497
1505
<key >name </key >
1498
1506
<string >meta.type.declaration.ts </string >
1499
1507
<key >patterns </key >
Original file line number Diff line number Diff line change @@ -46,13 +46,16 @@ repository:
46
46
- include : ' #enum-declaration'
47
47
48
48
type-declaration :
49
- name : meta.type.declaration.tsx
50
- begin : \b(type)\b\s+([a-zA-Z_$][\w$]*)\s*=\s*
49
+ name : meta.type.declaration.ts
50
+ begin : \b(type)\b\s+([a-zA-Z_$][\w$]*)\s*
51
51
beginCaptures :
52
- ' 1 ' : { name: keyword.other.tsx }
53
- ' 2 ' : { name: storage.type.tsx }
54
- end : (?=$| [,);>]|var|type|function|class|interface)
52
+ ' 1 ' : { name: keyword.other.ts }
53
+ ' 2 ' : { name: storage.type.ts }
54
+ end : (?=[,);>]|var|type|function|class|interface)
55
55
patterns :
56
+ - include : ' #type-parameters'
57
+ - name : keyword.operator.ts
58
+ match : ' =\s*'
56
59
- include : ' #type'
57
60
58
61
enum-declaration :
@@ -491,7 +494,7 @@ repository:
491
494
492
495
logic-operator :
493
496
name : keyword.operator.arithmetic.tsx
494
- match : \!|&|~|\||&&|\|\|
497
+ match : \!|&|~|\^|\ ||&&|\|\|
495
498
496
499
storage-keyword :
497
500
name : storage.type.tsx
Original file line number Diff line number Diff line change 1070
1070
<key >logic-operator </key >
1071
1071
<dict >
1072
1072
<key >match </key >
1073
- <string >\!|& |~|\||&& |\|\| </string >
1073
+ <string >\!|& |~|\^|\ ||&& |\|\| </string >
1074
1074
<key >name </key >
1075
1075
<string >keyword.operator.arithmetic.tsx </string >
1076
1076
</dict >
1852
1852
<key >type-declaration </key >
1853
1853
<dict >
1854
1854
<key >begin </key >
1855
- <string >\b(type)\b\s+([a-zA-Z_$][\w$]*)\s*=\s* </string >
1855
+ <string >\b(type)\b\s+([a-zA-Z_$][\w$]*)\s* </string >
1856
1856
<key >beginCaptures </key >
1857
1857
<dict >
1858
1858
<key >1 </key >
1859
1859
<dict >
1860
1860
<key >name </key >
1861
- <string >keyword.other.tsx </string >
1861
+ <string >keyword.other.ts </string >
1862
1862
</dict >
1863
1863
<key >2 </key >
1864
1864
<dict >
1865
1865
<key >name </key >
1866
- <string >storage.type.tsx </string >
1866
+ <string >storage.type.ts </string >
1867
1867
</dict >
1868
1868
</dict >
1869
1869
<key >end </key >
1870
- <string >(?=$| [,);> ]|var|type|function|class|interface) </string >
1870
+ <string >(?=[,);> ]|var|type|function|class|interface) </string >
1871
1871
<key >name </key >
1872
- <string >meta.type.declaration.tsx </string >
1872
+ <string >meta.type.declaration.ts </string >
1873
1873
<key >patterns </key >
1874
1874
<array >
1875
+ <dict >
1876
+ <key >include </key >
1877
+ <string >#type-parameters </string >
1878
+ </dict >
1879
+ <dict >
1880
+ <key >match </key >
1881
+ <string >=\s* </string >
1882
+ <key >name </key >
1883
+ <string >keyword.operator.ts </string >
1884
+ </dict >
1875
1885
<dict >
1876
1886
<key >include </key >
1877
1887
<string >#type </string >
You can’t perform that action at this time.
0 commit comments