File tree Expand file tree Collapse file tree 6 files changed +464
-87
lines changed Expand file tree Collapse file tree 6 files changed +464
-87
lines changed Original file line number Diff line number Diff line change @@ -1647,6 +1647,12 @@ repository:
1647
1647
- name : keyword.operator.arithmetic.ts
1648
1648
match : ' %|\*|/|-|\+'
1649
1649
# capture the arithmetic sign followed by variable or parenthesized expression so that it is not interpreted as regex
1650
+ - begin : (?<=[_$[:alnum:])\]])\s*(?=({{inlineComment}}\s*)+(/)(?![/*]))
1651
+ end : (/)(?!\*([^\*]|(\*[^\/]))*\*\/)
1652
+ endCaptures :
1653
+ ' 1 ' : { name: keyword.operator.arithmetic.ts }
1654
+ patterns :
1655
+ - include : ' #comment'
1650
1656
- match : (?<=[_$[:alnum:])\]])\s*(/)(?![/*])
1651
1657
captures :
1652
1658
' 1 ' : { name: keyword.operator.arithmetic.ts }
Original file line number Diff line number Diff line change 5383
5383
<key >match </key >
5384
5384
<string >%|\*|/|-|\+ </string >
5385
5385
</dict >
5386
+ <dict >
5387
+ <key >begin </key >
5388
+ <string >(?< =[_$[:alnum:])\]])\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)+(/)(?![/*])) </string >
5389
+ <key >end </key >
5390
+ <string >(/)(?!\*([^\*]|(\*[^\/]))*\*\/) </string >
5391
+ <key >endCaptures </key >
5392
+ <dict >
5393
+ <key >1 </key >
5394
+ <dict >
5395
+ <key >name </key >
5396
+ <string >keyword.operator.arithmetic.ts </string >
5397
+ </dict >
5398
+ </dict >
5399
+ <key >patterns </key >
5400
+ <array >
5401
+ <dict >
5402
+ <key >include </key >
5403
+ <string >#comment </string >
5404
+ </dict >
5405
+ </array >
5406
+ </dict >
5386
5407
<dict >
5387
5408
<key >match </key >
5388
5409
<string >(?< =[_$[:alnum:])\]])\s*(/)(?![/*]) </string >
Original file line number Diff line number Diff line change 5305
5305
<key >match </key >
5306
5306
<string >%|\*|/|-|\+ </string >
5307
5307
</dict >
5308
+ <dict >
5309
+ <key >begin </key >
5310
+ <string >(?< =[_$[:alnum:])\]])\s*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\s*)+(/)(?![/*])) </string >
5311
+ <key >end </key >
5312
+ <string >(/)(?!\*([^\*]|(\*[^\/]))*\*\/) </string >
5313
+ <key >endCaptures </key >
5314
+ <dict >
5315
+ <key >1 </key >
5316
+ <dict >
5317
+ <key >name </key >
5318
+ <string >keyword.operator.arithmetic.tsx </string >
5319
+ </dict >
5320
+ </dict >
5321
+ <key >patterns </key >
5322
+ <array >
5323
+ <dict >
5324
+ <key >include </key >
5325
+ <string >#comment </string >
5326
+ </dict >
5327
+ </array >
5328
+ </dict >
5308
5329
<dict >
5309
5330
<key >match </key >
5310
5331
<string >(?< =[_$[:alnum:])\]])\s*(/)(?![/*]) </string >
You can’t perform that action at this time.
0 commit comments