File tree 5 files changed +33
-6
lines changed
5 files changed +33
-6
lines changed Original file line number Diff line number Diff line change @@ -1372,7 +1372,7 @@ repository:
1372
1372
begin : ' {{startOfIdentifier}}(as)\s+'
1373
1373
beginCaptures :
1374
1374
' 1 ' : { name: keyword.control.as.ts }
1375
- end : (?=$|^|[,}]|({{startOfIdentifier}}(as)\s+))
1375
+ end : (?=$|^|[,}]|\|\||\&\&| ({{startOfIdentifier}}(as)\s+))
1376
1376
patterns :
1377
1377
- include : ' #type'
1378
1378
- name : meta.object.member.ts
@@ -1618,7 +1618,7 @@ repository:
1618
1618
- begin : ' {{startOfIdentifier}}(as)\s+'
1619
1619
beginCaptures :
1620
1620
' 1 ' : { name: keyword.control.as.ts }
1621
- end : (?=$|^|[;,:})\]]|({{startOfIdentifier}}(as)\s+)|(\s+\<))
1621
+ end : (?=$|^|[;,:})\]]|\|\||\&\&| ({{startOfIdentifier}}(as)\s+)|(\s+\<))
1622
1622
patterns :
1623
1623
- include : ' #type'
1624
1624
- name : keyword.operator.spread.ts
Original file line number Diff line number Diff line change 4446
4446
</dict >
4447
4447
</dict >
4448
4448
<key >end </key >
4449
- <string >(?=$|^|[,}]|((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)) </string >
4449
+ <string >(?=$|^|[,}]|\|\||\ & \ & | ((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)) </string >
4450
4450
<key >patterns </key >
4451
4451
<array >
4452
4452
<dict >
5278
5278
</dict >
5279
5279
</dict >
5280
5280
<key >end </key >
5281
- <string >(?=$|^|[;,:})\]]|((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)|(\s+\< )) </string >
5281
+ <string >(?=$|^|[;,:})\]]|\|\||\ & \ & | ((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)|(\s+\< )) </string >
5282
5282
<key >patterns </key >
5283
5283
<array >
5284
5284
<dict >
Original file line number Diff line number Diff line change 4470
4470
</dict >
4471
4471
</dict >
4472
4472
<key >end </key >
4473
- <string >(?=$|^|[,}]|((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)) </string >
4473
+ <string >(?=$|^|[,}]|\|\||\ & \ & | ((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)) </string >
4474
4474
<key >patterns </key >
4475
4475
<array >
4476
4476
<dict >
5224
5224
</dict >
5225
5225
</dict >
5226
5226
<key >end </key >
5227
- <string >(?=$|^|[;,:})\]]|((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)|(\s+\< )) </string >
5227
+ <string >(?=$|^|[;,:})\]]|\|\||\ & \ & | ((?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(as)\s+)|(\s+\< )) </string >
5228
5228
<key >patterns </key >
5229
5229
<array >
5230
5230
<dict >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ Date as any || null
4
+ -----------------------------------
5
+
6
+ Grammar: TypeScript.tmLanguage
7
+ -----------------------------------
8
+ >Date as any || null
9
+ ^^^^
10
+ source.ts support.class.builtin.ts
11
+ ^
12
+ source.ts
13
+ ^^
14
+ source.ts keyword.control.as.ts
15
+ ^
16
+ source.ts
17
+ ^^^
18
+ source.ts support.type.primitive.ts
19
+ ^
20
+ source.ts
21
+ ^^
22
+ source.ts keyword.operator.logical.ts
23
+ ^
24
+ source.ts
25
+ ^^^^
26
+ source.ts constant.language.null.ts
Original file line number Diff line number Diff line change
1
+ Date as any || null
You can’t perform that action at this time.
0 commit comments