File tree Expand file tree Collapse file tree 5 files changed +330
-14
lines changed Expand file tree Collapse file tree 5 files changed +330
-14
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,10 @@ repository:
166
166
- include : ' #new-expr'
167
167
- include : ' #object-literal'
168
168
- include : ' #expression-operators'
169
+ - include : ' #paren-expression-possibly-arrow'
169
170
- include : ' #function-call'
170
171
- include : ' #literal'
171
172
- include : ' #support-objects'
172
- - include : ' #paren-expression-possibly-arrow'
173
173
- include : ' #paren-expression'
174
174
175
175
expressionPunctuations :
@@ -1145,12 +1145,13 @@ repository:
1145
1145
# but do this only from expression and as last resort
1146
1146
paren-expression-possibly-arrow :
1147
1147
patterns :
1148
- - begin : (\()(?=\s*$)
1148
+ - begin : (?:{{startOfIdentifier}}(\basync)\s*)?( \()(?=\s*$)
1149
1149
beginCaptures :
1150
- ' 1 ' : {name: meta.brace.round.ts }
1150
+ ' 1 ' : { name: storage.modifier.async.ts }
1151
+ ' 2 ' : { name: meta.brace.round.ts }
1151
1152
end : \)
1152
1153
endCaptures :
1153
- ' 0 ' : {name: meta.brace.round.ts }
1154
+ ' 0 ' : { name: meta.brace.round.ts }
1154
1155
patterns :
1155
1156
- include : ' #expressionWithoutIdentifiers'
1156
1157
- include : ' #function-parameters-body'
Original file line number Diff line number Diff line change 265
265
</dict >
266
266
<dict >
267
267
<key >include </key >
268
- <string >#function-call </string >
268
+ <string >#paren-expression-possibly-arrow </string >
269
269
</dict >
270
270
<dict >
271
271
<key >include </key >
272
- <string >#literal </string >
272
+ <string >#function-call </string >
273
273
</dict >
274
274
<dict >
275
275
<key >include </key >
276
- <string >#support-objects </string >
276
+ <string >#literal </string >
277
277
</dict >
278
278
<dict >
279
279
<key >include </key >
280
- <string >#paren-expression-possibly-arrow </string >
280
+ <string >#support-objects </string >
281
281
</dict >
282
282
<dict >
283
283
<key >include </key >
3576
3576
<array >
3577
3577
<dict >
3578
3578
<key >begin </key >
3579
- <string >(\()(?=\s*$) </string >
3579
+ <string >(?:(? < ![_$[:alnum:]])(?:(? < =\.\.\.)|(? < !\.))(\basync)\s*)?( \()(?=\s*$) </string >
3580
3580
<key >beginCaptures </key >
3581
3581
<dict >
3582
3582
<key >1 </key >
3583
+ <dict >
3584
+ <key >name </key >
3585
+ <string >storage.modifier.async.ts </string >
3586
+ </dict >
3587
+ <key >2 </key >
3583
3588
<dict >
3584
3589
<key >name </key >
3585
3590
<string >meta.brace.round.ts </string >
Original file line number Diff line number Diff line change 269
269
</dict >
270
270
<dict >
271
271
<key >include </key >
272
- <string >#function-call </string >
272
+ <string >#paren-expression-possibly-arrow </string >
273
273
</dict >
274
274
<dict >
275
275
<key >include </key >
276
- <string >#literal </string >
276
+ <string >#function-call </string >
277
277
</dict >
278
278
<dict >
279
279
<key >include </key >
280
- <string >#support-objects </string >
280
+ <string >#literal </string >
281
281
</dict >
282
282
<dict >
283
283
<key >include </key >
284
- <string >#paren-expression-possibly-arrow </string >
284
+ <string >#support-objects </string >
285
285
</dict >
286
286
<dict >
287
287
<key >include </key >
3580
3580
<array >
3581
3581
<dict >
3582
3582
<key >begin </key >
3583
- <string >(\()(?=\s*$) </string >
3583
+ <string >(?:(? < ![_$[:alnum:]])(?:(? < =\.\.\.)|(? < !\.))(\basync)\s*)?( \()(?=\s*$) </string >
3584
3584
<key >beginCaptures </key >
3585
3585
<dict >
3586
3586
<key >1 </key >
3587
+ <dict >
3588
+ <key >name </key >
3589
+ <string >storage.modifier.async.tsx </string >
3590
+ </dict >
3591
+ <key >2 </key >
3587
3592
<dict >
3588
3593
<key >name </key >
3589
3594
<string >meta.brace.round.tsx </string >
You can’t perform that action at this time.
0 commit comments