File tree Expand file tree Collapse file tree 3 files changed +6
-45
lines changed Expand file tree Collapse file tree 3 files changed +6
-45
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,6 @@ repository:
218
218
- include : ' #arrow-function'
219
219
- include : ' #paren-expression-possibly-arrow'
220
220
- include : ' #cast'
221
- - include : ' #nullish-coalesce'
222
221
- include : ' #ternary-expression'
223
222
- include : ' #new-expr'
224
223
- include : ' #instanceof-expr'
@@ -1415,15 +1414,9 @@ repository:
1415
1414
- include : ' #expression'
1416
1415
- include : ' #punctuation-comma'
1417
1416
1418
- # nullish coalesce
1419
- nullish-coalesce :
1420
- patterns :
1421
- - name : keyword.operator.logical.ts
1422
- match : \?\?
1423
-
1424
1417
# ternary expression
1425
1418
ternary-expression :
1426
- begin : (?!\?\.\s*[^[:digit:]])(\?)
1419
+ begin : (?!\?\.\s*[^[:digit:]])(\?)(?!\?)
1427
1420
beginCaptures :
1428
1421
' 1 ' : { name: keyword.operator.ternary.ts }
1429
1422
end : \s*(:)
@@ -1641,7 +1634,7 @@ repository:
1641
1634
- name : keyword.operator.relational.ts
1642
1635
match : <=|>=|<>|<|>
1643
1636
- name : keyword.operator.logical.ts
1644
- match : \!|&&|\|\|
1637
+ match : \!|&&|\|\||\?\?
1645
1638
- name : keyword.operator.bitwise.ts
1646
1639
match : \&|~|\^|\|
1647
1640
- name : keyword.operator.assignment.ts
Original file line number Diff line number Diff line change 323
323
<key >include </key >
324
324
<string >#cast </string >
325
325
</dict >
326
- <dict >
327
- <key >include </key >
328
- <string >#nullish-coalesce </string >
329
- </dict >
330
326
<dict >
331
327
<key >include </key >
332
328
<string >#ternary-expression </string >
4591
4587
</dict >
4592
4588
</array >
4593
4589
</dict >
4594
- <key >nullish-coalesce </key >
4595
- <dict >
4596
- <key >patterns </key >
4597
- <array >
4598
- <dict >
4599
- <key >name </key >
4600
- <string >keyword.operator.logical.ts </string >
4601
- <key >match </key >
4602
- <string >\?\? </string >
4603
- </dict >
4604
- </array >
4605
- </dict >
4606
4590
<key >ternary-expression </key >
4607
4591
<dict >
4608
4592
<key >begin </key >
4609
- <string >(?!\?\.\s*[^[:digit:]])(\?) </string >
4593
+ <string >(?!\?\.\s*[^[:digit:]])(\?)(?!\?) </string >
4610
4594
<key >beginCaptures </key >
4611
4595
<dict >
4612
4596
<key >1 </key >
5343
5327
<key >name </key >
5344
5328
<string >keyword.operator.logical.ts </string >
5345
5329
<key >match </key >
5346
- <string >\!|&& |\|\| </string >
5330
+ <string >\!|&& |\|\||\?\? </string >
5347
5331
</dict >
5348
5332
<dict >
5349
5333
<key >name </key >
Original file line number Diff line number Diff line change 327
327
<key >include </key >
328
328
<string >#cast </string >
329
329
</dict >
330
- <dict >
331
- <key >include </key >
332
- <string >#nullish-coalesce </string >
333
- </dict >
334
330
<dict >
335
331
<key >include </key >
336
332
<string >#ternary-expression </string >
4615
4611
</dict >
4616
4612
</array >
4617
4613
</dict >
4618
- <key >nullish-coalesce </key >
4619
- <dict >
4620
- <key >patterns </key >
4621
- <array >
4622
- <dict >
4623
- <key >name </key >
4624
- <string >keyword.operator.logical.tsx </string >
4625
- <key >match </key >
4626
- <string >\?\? </string >
4627
- </dict >
4628
- </array >
4629
- </dict >
4630
4614
<key >ternary-expression </key >
4631
4615
<dict >
4632
4616
<key >begin </key >
4633
- <string >(?!\?\.\s*[^[:digit:]])(\?) </string >
4617
+ <string >(?!\?\.\s*[^[:digit:]])(\?)(?!\?) </string >
4634
4618
<key >beginCaptures </key >
4635
4619
<dict >
4636
4620
<key >1 </key >
5289
5273
<key >name </key >
5290
5274
<string >keyword.operator.logical.tsx </string >
5291
5275
<key >match </key >
5292
- <string >\!|&& |\|\| </string >
5276
+ <string >\!|&& |\|\||\?\? </string >
5293
5277
</dict >
5294
5278
<dict >
5295
5279
<key >name </key >
You can’t perform that action at this time.
0 commit comments