Skip to content

Commit e6e2070

Browse files
authored
Fix CommandType argument highlighting
Function, Filter, Configuration and Workflow keywords are highlighted when used as arguments for CommandType parameter.
1 parent 766ba61 commit e6e2070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@
542542
<key>function</key>
543543
<dict>
544544
<key>begin</key>
545-
<string>(?&lt;!\S)(?i)(function|filter|configuration|workflow)\s+(?:(global|local|script|private):)?((?:\p{L}|\d|_|-|\.)+)</string>
545+
<string>^(?:\s*+)(?i)(function|filter|configuration|workflow)\s+(?:(global|local|script|private):)?((?:\p{L}|\d|_|-|\.)+)</string>
546546
<key>beginCaptures</key>
547547
<dict>
548548
<key>0</key>

0 commit comments

Comments
 (0)