File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 237
237
</dict >
238
238
<dict >
239
239
<key >match </key >
240
- <string >(?< !\w)((?i:begin|break|catch|class| continue|data|define|do|dynamicparam|else|elseif|end|exit|filter|finally|for|foreach(?!-object)|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|using|var|where(?!=-object)|while|workflow )|%|\?)(?!\w) </string >
240
+ <string >(?< !\w)((?i:begin|break|catch|continue|data|define|do|dynamicparam|else|elseif|end|exit|filter|finally|for|foreach(?!-object)|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|using|var|where(?!=-object)|while)|%|\?)(?!\w) </string >
241
241
<key >name </key >
242
242
<string >keyword.control.powershell </string >
243
243
</dict >
244
+ <dict >
245
+ <key >captures </key >
246
+ <dict >
247
+ <key >1 </key >
248
+ <dict >
249
+ <key >name </key >
250
+ <string >storage.type.powershell </string >
251
+ </dict >
252
+ <key >2 </key >
253
+ <dict >
254
+ <key >name </key >
255
+ <string >entity.name.function </string >
256
+ </dict >
257
+ </dict >
258
+ <key >match </key >
259
+ <string >(?< !\w)((?i:class|workflow)|%|\?)(?:\s)+(\w+)\b </string >
260
+ </dict >
244
261
<dict >
245
262
<key >match </key >
246
263
<string >(?< !\w)-(?i:is(?:not)?|as)\b </string >
494
511
<key >function </key >
495
512
<dict >
496
513
<key >begin </key >
497
- <string >(?i:function|configuration)\s+((?:\p{L}|\d|_|-)+) </string >
514
+ <string >(( ?i:function|configuration) )\s+((?:\p{L}|\d|_|-)+) </string >
498
515
<key >beginCaptures </key >
499
516
<dict >
500
517
<key >0 </key >
Original file line number Diff line number Diff line change @@ -59,6 +59,18 @@ function echo([string]$text) {
59
59
write-host $text
60
60
}
61
61
62
+ # declaration should be consistent
63
+ function foo () {}
64
+ Function foo () {}
65
+
66
+ class A {}
67
+ Class Foo {}
68
+
69
+ workflow w1 {}
70
+ Workflow work {}
71
+
72
+ configuration c {}
73
+ Configuration c {}
62
74
63
75
# Highlight types
64
76
[int []][char []]" hello world"
You can’t perform that action at this time.
0 commit comments