Skip to content

Commit 61496ce

Browse files
authored
Add new entry for foreach and where keywords
Add new dictionary entry for foreach and where keywords
1 parent 234dfd7 commit 61496ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,13 @@
248248
</dict>
249249
<dict>
250250
<key>match</key>
251-
<string>(?&lt;!\w|-|\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|foreach(?!-object)|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|var|where(?!-object)|while)|%|\?)(?!\w)</string>
251+
<string>(?&lt;!\w|-|\.)((?i:begin|break|catch|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|foreach-object|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|var|where-object|while)|%|\?)(?!\w)</string>
252+
<key>name</key>
253+
<string>keyword.control.powershell</string>
254+
</dict>
255+
<dict>
256+
<key>match</key>
257+
<string>(?&lt;!\w|-|[^\)]\.)((?i:foreach|where)|%|\?)(?!\w)</string>
252258
<key>name</key>
253259
<string>keyword.control.powershell</string>
254260
</dict>

0 commit comments

Comments
 (0)