Skip to content

Commit d605150

Browse files
committed
Fix for bug reported by @Dragonsong3k in microsoft/vscode#7522
1 parent 990a2ca commit d605150

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@
14231423
<key>comment</key>
14241424
<string>Automatic variables - read-only.</string>
14251425
<key>match</key>
1426-
<string>(\$)(?i:(_|args|consolefilename|error|event|eventsubscriber|executioncontext|false|foreach|home|host|input|lastexitcode|matches|myinvocation|nestedpromptlevel|null|pid|psboundparameters|pscmdlet|psculture|psdebugcontext|pshome|psitem|psscriptroot|psuiculture|psversiontable|pwd|sender|shellid|sourceargs|sourceeventargs|switch|this|true))\b((\.[\w"'\- @]+)*)</string>
1426+
<string>(\$)(?i:(_|args|consolefilename|error|event|eventsubscriber|executioncontext|false|foreach|home|host|input|lastexitcode|matches|myinvocation|nestedpromptlevel|null|pid|psboundparameters|pscmdlet|psculture|psdebugcontext|pshome|psitem|psscriptroot|psuiculture|psversiontable|pwd|sender|shellid|sourceargs|sourceeventargs|switch|this|true))\b((\.[\w"'\- @#]+)*)</string>
14271427
</dict>
14281428
<dict>
14291429
<key>captures</key>
@@ -1457,7 +1457,7 @@
14571457
<key>comment</key>
14581458
<string>$var, $local:var</string>
14591459
<key>match</key>
1460-
<string>(\$)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(\w+)(:\w+)?((\.[\w"'\- @]+)*)</string>
1460+
<string>(\$)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(\w+)(:\w+)?((\.[\w"'\- @#]+)*)</string>
14611461
</dict>
14621462
<dict>
14631463
<key>captures</key>
@@ -1496,7 +1496,7 @@
14961496
<key>comment</key>
14971497
<string>${var}, ${script:var}</string>
14981498
<key>match</key>
1499-
<string>(\$)(\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+?)(\})((\.[\w"'\- @]+)*)</string>
1499+
<string>(\$)(\{)((?i:global|local|script|private|using|env|function|alias|cert|variable|hkcu|hklm|wsman):)?(.+?)(\})((\.[\w"'\- @#]+)*)</string>
15001500
</dict>
15011501
<dict>
15021502
<key>captures</key>

0 commit comments

Comments
 (0)