File tree 5 files changed +1197
-0
lines changed
5 files changed +1197
-0
lines changed Original file line number Diff line number Diff line change @@ -2332,6 +2332,13 @@ repository:
2332
2332
endCaptures :
2333
2333
' 0 ' : { name: meta.brace.square.ts }
2334
2334
patterns :
2335
+ - name : keyword.operator.rest.ts
2336
+ match : \.\.\.
2337
+ - match : ' {{startOfIdentifier}}({{identifier}})\s*(\?)?\s*(:)'
2338
+ captures :
2339
+ ' 1 ' : { name: entity.name.label.ts }
2340
+ ' 2 ' : { name: keyword.operator.optional.ts }
2341
+ ' 3 ' : { name: punctuation.separator.label.ts }
2335
2342
- include : ' #type'
2336
2343
- include : ' #punctuation-comma'
2337
2344
Original file line number Diff line number Diff line change 7042
7042
</dict >
7043
7043
<key >patterns </key >
7044
7044
<array >
7045
+ <dict >
7046
+ <key >name </key >
7047
+ <string >keyword.operator.rest.ts </string >
7048
+ <key >match </key >
7049
+ <string >\.\.\. </string >
7050
+ </dict >
7051
+ <dict >
7052
+ <key >match </key >
7053
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))([_$[:alpha:]][_$[:alnum:]]*)\s*(\?)?\s*(:) </string >
7054
+ <key >captures </key >
7055
+ <dict >
7056
+ <key >1 </key >
7057
+ <dict >
7058
+ <key >name </key >
7059
+ <string >entity.name.label.ts </string >
7060
+ </dict >
7061
+ <key >2 </key >
7062
+ <dict >
7063
+ <key >name </key >
7064
+ <string >keyword.operator.optional.ts </string >
7065
+ </dict >
7066
+ <key >3 </key >
7067
+ <dict >
7068
+ <key >name </key >
7069
+ <string >punctuation.separator.label.ts </string >
7070
+ </dict >
7071
+ </dict >
7072
+ </dict >
7045
7073
<dict >
7046
7074
<key >include </key >
7047
7075
<string >#type </string >
Original file line number Diff line number Diff line change 6990
6990
</dict >
6991
6991
<key >patterns </key >
6992
6992
<array >
6993
+ <dict >
6994
+ <key >name </key >
6995
+ <string >keyword.operator.rest.tsx </string >
6996
+ <key >match </key >
6997
+ <string >\.\.\. </string >
6998
+ </dict >
6999
+ <dict >
7000
+ <key >match </key >
7001
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))([_$[:alpha:]][_$[:alnum:]]*)\s*(\?)?\s*(:) </string >
7002
+ <key >captures </key >
7003
+ <dict >
7004
+ <key >1 </key >
7005
+ <dict >
7006
+ <key >name </key >
7007
+ <string >entity.name.label.tsx </string >
7008
+ </dict >
7009
+ <key >2 </key >
7010
+ <dict >
7011
+ <key >name </key >
7012
+ <string >keyword.operator.optional.tsx </string >
7013
+ </dict >
7014
+ <key >3 </key >
7015
+ <dict >
7016
+ <key >name </key >
7017
+ <string >punctuation.separator.label.tsx </string >
7018
+ </dict >
7019
+ </dict >
7020
+ </dict >
6993
7021
<dict >
6994
7022
<key >include </key >
6995
7023
<string >#type </string >
You can’t perform that action at this time.
0 commit comments