File tree Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Expand file tree Collapse file tree 4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ repository:
86
86
87
87
object-heritage :
88
88
name : meta.object.heritage.ts
89
- begin : ' (?:\s*\ b(extends|implements)\b)'
89
+ begin : ' (?:\b(extends|implements)\b)'
90
90
beginCaptures :
91
91
' 1 ' : { name: keyword.other.ts }
92
92
end : (?=\{)
@@ -96,11 +96,11 @@ repository:
96
96
- include : ' #comment'
97
97
- include : ' #object-heritage'
98
98
- include : ' #type-parameters'
99
- - include : ' #object-heritage-parent '
99
+ - include : ' #object-heritage-type '
100
100
101
- object-heritage-parent :
101
+ object-heritage-type :
102
102
name : meta.object.heritage.parent.ts
103
- match : ' (?:\s* ([a-zA-Z_$][\w$]*))'
103
+ match : ' (?:\b ([a-zA-Z_$][\w$]*)\b )'
104
104
captures :
105
105
' 1 ' : { name: storage.type.ts }
106
106
Original file line number Diff line number Diff line change 998
998
<key >object-heritage </key >
999
999
<dict >
1000
1000
<key >begin </key >
1001
- <string >(?:\s*\ b(extends|implements)\b) </string >
1001
+ <string >(?:\b(extends|implements)\b) </string >
1002
1002
<key >beginCaptures </key >
1003
1003
<dict >
1004
1004
<key >1 </key >
1035
1035
</dict >
1036
1036
<dict >
1037
1037
<key >include </key >
1038
- <string >#object-heritage-parent </string >
1038
+ <string >#object-heritage-type </string >
1039
1039
</dict >
1040
1040
</array >
1041
1041
</dict >
1042
- <key >object-heritage-parent </key >
1042
+ <key >object-heritage-type </key >
1043
1043
<dict >
1044
1044
<key >captures </key >
1045
1045
<dict >
1050
1050
</dict >
1051
1051
</dict >
1052
1052
<key >match </key >
1053
- <string >(?:\s* ([a-zA-Z_$][\w$]*)) </string >
1053
+ <string >(?:\b ([a-zA-Z_$][\w$]*)\b ) </string >
1054
1054
<key >name </key >
1055
1055
<string >meta.object.heritage.parent.ts </string >
1056
1056
</dict >
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ repository:
88
88
89
89
object-heritage :
90
90
name : meta.object.heritage.tsx
91
- begin : ' (?:\s*\ b(extends|implements)\b)'
91
+ begin : ' (?:\b(extends|implements)\b)'
92
92
beginCaptures :
93
93
' 1 ' : { name: keyword.other.tsx }
94
94
end : (?=\{)
@@ -98,11 +98,11 @@ repository:
98
98
- include : ' #comment'
99
99
- include : ' #object-heritage'
100
100
- include : ' #type-parameters'
101
- - include : ' #object-heritage-parent '
101
+ - include : ' #object-heritage-type '
102
102
103
- object-heritage-parent :
103
+ object-heritage-type :
104
104
name : meta.object.heritage.parent.tsx
105
- match : ' (?:\s* ([a-zA-Z_$][\w$]*))'
105
+ match : ' (?:\b ([a-zA-Z_$][\w$]*)\b )'
106
106
captures :
107
107
' 1 ' : { name: storage.type.tsx }
108
108
Original file line number Diff line number Diff line change 1364
1364
<key >object-heritage </key >
1365
1365
<dict >
1366
1366
<key >begin </key >
1367
- <string >(?:\s*\ b(extends|implements)\b) </string >
1367
+ <string >(?:\b(extends|implements)\b) </string >
1368
1368
<key >beginCaptures </key >
1369
1369
<dict >
1370
1370
<key >1 </key >
1401
1401
</dict >
1402
1402
<dict >
1403
1403
<key >include </key >
1404
- <string >#object-heritage-parent </string >
1404
+ <string >#object-heritage-type </string >
1405
1405
</dict >
1406
1406
</array >
1407
1407
</dict >
1408
- <key >object-heritage-parent </key >
1408
+ <key >object-heritage-type </key >
1409
1409
<dict >
1410
1410
<key >captures </key >
1411
1411
<dict >
1416
1416
</dict >
1417
1417
</dict >
1418
1418
<key >match </key >
1419
- <string >(?:\s* ([a-zA-Z_$][\w$]*)) </string >
1419
+ <string >(?:\b ([a-zA-Z_$][\w$]*)\b ) </string >
1420
1420
<key >name </key >
1421
1421
<string >meta.object.heritage.parent.tsx </string >
1422
1422
</dict >
You can’t perform that action at this time.
0 commit comments