Skip to content

Commit f2134bf

Browse files
author
bcrotty
committed
Update PowershellSyntax.tmLanguage
1 parent dd8f056 commit f2134bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Support/PowershellSyntax.tmLanguage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
</dict>
239239
<dict>
240240
<key>match</key>
241-
<string>\b(?&lt;!\.)(?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|while|workflow)\b</string>
241+
<string>(?&lt;!\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|while|workflow)|%|\?)(?!\w)</string>
242242
<key>name</key>
243243
<string>keyword.control.powershell</string>
244244
</dict>
@@ -250,7 +250,7 @@
250250
</dict>
251251
<dict>
252252
<key>match</key>
253-
<string>-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains)|replace))\b</string>
253+
<string>-(?i:[ic]?(?:eq|ne|[gl][te]|(?:not)?(?:like|match|contains)|replace))(?!\p{L})</string>
254254
<key>name</key>
255255
<string>keyword.operator.comparison.powershell</string>
256256
</dict>
@@ -268,13 +268,13 @@
268268
</dict>
269269
<dict>
270270
<key>match</key>
271-
<string>-(?i:band|bor|bnot|bxor)\b</string>
271+
<string>-(?i:band|bor|bnot|bxor)(?!\p{L})</string>
272272
<key>name</key>
273273
<string>keyword.operator.bitwise.powershell</string>
274274
</dict>
275275
<dict>
276276
<key>match</key>
277-
<string>-f\b</string>
277+
<string>-(?i:f)(?!\p{L})</string>
278278
<key>name</key>
279279
<string>keyword.operator.string-format.powershell</string>
280280
</dict>

0 commit comments

Comments
 (0)