File tree Expand file tree Collapse file tree 6 files changed +337
-1
lines changed Expand file tree Collapse file tree 6 files changed +337
-1
lines changed Original file line number Diff line number Diff line change @@ -1085,6 +1085,7 @@ repository:
1085
1085
' 5 ' : { name: keyword.operator.assignment.ts }
1086
1086
end : (?=;|$|^)
1087
1087
patterns :
1088
+ - include : ' #single-line-comment-consuming-line-ending'
1088
1089
- include : ' #comment'
1089
1090
- match : ({{identifier}})\s*{{propertyAccess}}
1090
1091
captures :
@@ -1103,6 +1104,7 @@ repository:
1103
1104
' 3 ' : { name: keyword.control.import.ts }
1104
1105
end : (?<!{{lookBehindImport}})(?=;|$|^)
1105
1106
patterns :
1107
+ - include : ' #single-line-comment-consuming-line-ending'
1106
1108
- include : ' #comment'
1107
1109
- include : ' #string'
1108
1110
- begin : (?<={{lookBehindImport}})(?!\s*["'])
Original file line number Diff line number Diff line change 3476
3476
<string >(?=;|$|^) </string >
3477
3477
<key >patterns </key >
3478
3478
<array >
3479
+ <dict >
3480
+ <key >include </key >
3481
+ <string >#single-line-comment-consuming-line-ending </string >
3482
+ </dict >
3479
3483
<dict >
3480
3484
<key >include </key >
3481
3485
<string >#comment </string >
3540
3544
<string >(?< !^import|[^\._$[:alnum:]]import)(?=;|$|^) </string >
3541
3545
<key >patterns </key >
3542
3546
<array >
3547
+ <dict >
3548
+ <key >include </key >
3549
+ <string >#single-line-comment-consuming-line-ending </string >
3550
+ </dict >
3543
3551
<dict >
3544
3552
<key >include </key >
3545
3553
<string >#comment </string >
Original file line number Diff line number Diff line change 3498
3498
<string >(?=;|$|^) </string >
3499
3499
<key >patterns </key >
3500
3500
<array >
3501
+ <dict >
3502
+ <key >include </key >
3503
+ <string >#single-line-comment-consuming-line-ending </string >
3504
+ </dict >
3501
3505
<dict >
3502
3506
<key >include </key >
3503
3507
<string >#comment </string >
3562
3566
<string >(?< !^import|[^\._$[:alnum:]]import)(?=;|$|^) </string >
3563
3567
<key >patterns </key >
3564
3568
<array >
3569
+ <dict >
3570
+ <key >include </key >
3571
+ <string >#single-line-comment-consuming-line-ending </string >
3572
+ </dict >
3565
3573
<dict >
3566
3574
<key >include </key >
3567
3575
<string >#comment </string >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Grammar: TypeScript.tmLanguage
29
29
source.ts meta.import.ts
30
30
^^
31
31
source.ts meta.import.ts comment.line.double-slash.ts punctuation.definition.comment.ts
32
- ^^^^^
32
+ ^^^^^^
33
33
source.ts meta.import.ts comment.line.double-slash.ts
34
34
>import b from 'b'
35
35
^^^^^^
You can’t perform that action at this time.
0 commit comments