Skip to content

Commit 0a39cbb

Browse files
committed
Fix Select-Object highlighting issue.
1 parent 5fa7f96 commit 0a39cbb

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

extensions/powershell/syntaxes/PowershellSyntax.tmLanguage

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
</dict>
247247
<dict>
248248
<key>match</key>
249-
<string>(?&lt;!\w)((?i:begin|break|catch|continue|data|define|do|dynamicparam|else|elseif|end|exit|finally|for|foreach(?!-object)|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|using|var|where(?!=-object)|while)|%|\?)(?!\w)</string>
249+
<string>(?&lt;!\w)((?i:begin|break|catch|continue|data|define|do|dynamicparam|else|elseif|end|exit|finally|for|foreach(?!-object)|from|if|in|inlinescript|parallel|param|process|return|switch|throw|trap|try|until|using|var|where(?!-object)|while)|%|\?)(?!\w)</string>
250250
<key>name</key>
251251
<string>keyword.control.powershell</string>
252252
</dict>
@@ -426,6 +426,14 @@
426426
<key>name</key>
427427
<string>support.function.powershell</string>
428428
</dict>
429+
<dict>
430+
<key>comment</key>
431+
<string>Builtin cmdlets with reserved verbs</string>
432+
<key>match</key>
433+
<string>(?&lt;!\w)(?i:where-object)(?!\w)</string>
434+
<key>name</key>
435+
<string>support.function.powershell</string>
436+
</dict>
429437
</array>
430438
</dict>
431439
<key>commentEmbeddedDocs</key>

0 commit comments

Comments
 (0)