Skip to content

Commit 766ba61

Browse files
kborowinskiTylerLeonhardt
authored andcommitted
Fixes broken comment highlighting (#90)
Fixes broken comment highlighting when 'requires' word is used in middle of text.
1 parent e249a57 commit 766ba61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@
10831083
<key>RequiresDirective</key>
10841084
<dict>
10851085
<key>begin</key>
1086-
<string>(?i:(requires))\s</string>
1086+
<string>(?<=#)(?i:(requires))\s</string>
10871087
<key>beginCaptures</key>
10881088
<dict>
10891089
<key>0</key>
@@ -1402,4 +1402,4 @@
14021402
<key>uuid</key>
14031403
<string>f8f5ffb0-503e-11df-9879-0800200c9a66</string>
14041404
</dict>
1405-
</plist>
1405+
</plist>

0 commit comments

Comments
 (0)