Skip to content

Commit 6bc734e

Browse files
authored
Fix class keyword coloring
Fixes class keyword coloring when used as parameter
1 parent 529562f commit 6bc734e

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
@@ -283,7 +283,7 @@
283283
<key>comment</key>
284284
<string>capture should be entity.name.type, but it doesn't provide a good color in the default schema.</string>
285285
<key>match</key>
286-
<string>(?&lt;!\w)((?i:class)|%|\?)(?:\s)+((?:\p{L}|\d|_|-|)+)\b</string>
286+
<string>(?&lt;!\w|-)((?i:class)|%|\?)(?:\s)+((?:\p{L}|\d|_|-|)+)\b</string>
287287
</dict>
288288
<dict>
289289
<key>match</key>

0 commit comments

Comments
 (0)