File tree Expand file tree Collapse file tree 4 files changed +34
-14
lines changed Expand file tree Collapse file tree 4 files changed +34
-14
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ repository:
511
511
- include : ' #method-declaration-name'
512
512
513
513
method-declaration-name :
514
- begin : \G
514
+ begin : \G(?!\(|\<)
515
515
end : (?=\(|\<)
516
516
patterns :
517
517
- match : (\*)\s*
@@ -1200,13 +1200,15 @@ repository:
1200
1200
- begin : (^[ \t]+)?(?=//)
1201
1201
beginCaptures :
1202
1202
' 1 ' : {name: punctuation.whitespace.comment.leading.ts}
1203
- end : (?!\G)
1203
+ end : \n
1204
+ endCaptures :
1205
+ ' 0 ' : { name: comment.line.double-slash.ts }
1204
1206
patterns :
1205
1207
- name : comment.line.double-slash.ts
1206
1208
begin : //
1207
1209
beginCaptures :
1208
1210
' 0 ' : {name: punctuation.definition.comment.ts}
1209
- end : \n
1211
+ end : (?=\n)
1210
1212
1211
1213
docblock :
1212
1214
patterns :
Original file line number Diff line number Diff line change 614
614
</dict >
615
615
</dict >
616
616
<key >end </key >
617
- <string >(?!\G) </string >
617
+ <string >\n </string >
618
+ <key >endCaptures </key >
619
+ <dict >
620
+ <key >0 </key >
621
+ <dict >
622
+ <key >name </key >
623
+ <string >comment.line.double-slash.ts </string >
624
+ </dict >
625
+ </dict >
618
626
<key >patterns </key >
619
627
<array >
620
628
<dict >
629
637
</dict >
630
638
</dict >
631
639
<key >end </key >
632
- <string >\n </string >
640
+ <string >(?=\n) </string >
633
641
<key >name </key >
634
642
<string >comment.line.double-slash.ts </string >
635
643
</dict >
2054
2062
<key >method-declaration-name </key >
2055
2063
<dict >
2056
2064
<key >begin </key >
2057
- <string >\G </string >
2065
+ <string >\G(?!\(|\ < ) </string >
2058
2066
<key >end </key >
2059
2067
<string >(?=\(|\< ) </string >
2060
2068
<key >patterns </key >
Original file line number Diff line number Diff line change @@ -515,7 +515,7 @@ repository:
515
515
- include : ' #method-declaration-name'
516
516
517
517
method-declaration-name :
518
- begin : \G
518
+ begin : \G(?!\(|\<)
519
519
end : (?=\(|\<)
520
520
patterns :
521
521
- match : (\*)\s*
@@ -1189,13 +1189,15 @@ repository:
1189
1189
- begin : (^[ \t]+)?(?=//)
1190
1190
beginCaptures :
1191
1191
' 1 ' : {name: punctuation.whitespace.comment.leading.tsx}
1192
- end : (?!\G)
1192
+ end : \n
1193
+ endCaptures :
1194
+ ' 0 ' : { name: comment.line.double-slash.tsx }
1193
1195
patterns :
1194
1196
- name : comment.line.double-slash.tsx
1195
1197
begin : //
1196
1198
beginCaptures :
1197
1199
' 0 ' : {name: punctuation.definition.comment.tsx}
1198
- end : \n
1200
+ end : (?=\n)
1199
1201
1200
1202
docblock :
1201
1203
patterns :
@@ -1415,7 +1417,7 @@ repository:
1415
1417
' 3 ' : { name: entity.name.tag.tsx }
1416
1418
' 4 ' : { name: punctuation.definition.tag.end.tsx }
1417
1419
patterns :
1418
- - begin : \G
1420
+ - begin : \G(?![/]?>)
1419
1421
end : (?=[/]?>)
1420
1422
patterns :
1421
1423
- include : ' #comment'
Original file line number Diff line number Diff line change 582
582
</dict >
583
583
</dict >
584
584
<key >end </key >
585
- <string >(?!\G) </string >
585
+ <string >\n </string >
586
+ <key >endCaptures </key >
587
+ <dict >
588
+ <key >0 </key >
589
+ <dict >
590
+ <key >name </key >
591
+ <string >comment.line.double-slash.tsx </string >
592
+ </dict >
593
+ </dict >
586
594
<key >patterns </key >
587
595
<array >
588
596
<dict >
597
605
</dict >
598
606
</dict >
599
607
<key >end </key >
600
- <string >\n </string >
608
+ <string >(?=\n) </string >
601
609
<key >name </key >
602
610
<string >comment.line.double-slash.tsx </string >
603
611
</dict >
2171
2179
<array >
2172
2180
<dict >
2173
2181
<key >begin </key >
2174
- <string >\G </string >
2182
+ <string >\G(?![/]? > ) </string >
2175
2183
<key >end </key >
2176
2184
<string >(?=[/]?> ) </string >
2177
2185
<key >patterns </key >
2440
2448
<key >method-declaration-name </key >
2441
2449
<dict >
2442
2450
<key >begin </key >
2443
- <string >\G </string >
2451
+ <string >\G(?!\(|\ < ) </string >
2444
2452
<key >end </key >
2445
2453
<string >(?=\(|\< ) </string >
2446
2454
<key >patterns </key >
You can’t perform that action at this time.
0 commit comments