diff --git a/PowerShellSyntax.tmLanguage b/PowerShellSyntax.tmLanguage
index 53b1097..2155245 100644
--- a/PowerShellSyntax.tmLanguage
+++ b/PowerShellSyntax.tmLanguage
@@ -283,7 +283,7 @@
comment
capture should be entity.name.type, but it doesn't provide a good color in the default schema.
match
- (?<!\w)((?i:class)|%|\?)(?:\s)+((?:\p{L}|\d|_|-|)+)\b
+ (?<!\w|-)((?i:class)|%|\?)(?:\s)+((?:\p{L}|\d|_|-|)+)\b
match