File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,15 @@ repository:
45
45
46
46
type-declaration :
47
47
name : meta.type.declaration.ts
48
- begin : \b(type)\b\s+([a-zA-Z_$][\w$]*)\s*=\s*
48
+ begin : \b(type)\b\s+([a-zA-Z_$][\w$]*)\s*
49
49
beginCaptures :
50
50
' 1 ' : { name: keyword.other.ts }
51
51
' 2 ' : { name: storage.type.ts }
52
52
end : (?=$|[,);>]|var|type|function|class|interface)
53
53
patterns :
54
+ - include : ' #type-parameters'
55
+ - name : keyword.operator.ts
56
+ match : ' =\s*'
54
57
- include : ' #type'
55
58
56
59
enum-declaration :
@@ -89,9 +92,7 @@ repository:
89
92
begin : ' (?:\b(extends|implements))'
90
93
beginCaptures :
91
94
' 1 ' : { name: keyword.other.ts }
92
- end : (?=\{)
93
- endCaptures :
94
- ' 1 ' : { name: brace.curly.ts }
95
+ end : \b
95
96
patterns :
96
97
- include : ' #comment'
97
98
- include : ' #object-heritage'
Original file line number Diff line number Diff line change 1008
1008
</dict >
1009
1009
</dict >
1010
1010
<key >end </key >
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 >
1011
+ <string >\b </string >
1020
1012
<key >name </key >
1021
1013
<string >meta.object.heritage.ts </string >
1022
1014
<key >patterns </key >
1486
1478
<key >type-declaration </key >
1487
1479
<dict >
1488
1480
<key >begin </key >
1489
- <string >\b(type)\b\s+([a-zA-Z_$][\w$]*)\s*=\s* </string >
1481
+ <string >\b(type)\b\s+([a-zA-Z_$][\w$]*)\s* </string >
1490
1482
<key >beginCaptures </key >
1491
1483
<dict >
1492
1484
<key >1 </key >
1506
1498
<string >meta.type.declaration.ts </string >
1507
1499
<key >patterns </key >
1508
1500
<array >
1501
+ <dict >
1502
+ <key >include </key >
1503
+ <string >#type-parameters </string >
1504
+ </dict >
1505
+ <dict >
1506
+ <key >match </key >
1507
+ <string >=\s* </string >
1508
+ <key >name </key >
1509
+ <string >keyword.operator.ts </string >
1510
+ </dict >
1509
1511
<dict >
1510
1512
<key >include </key >
1511
1513
<string >#type </string >
You can’t perform that action at this time.
0 commit comments