Skip to content

Commit 3d836a9

Browse files
committed
Added scoping of properties also for automatic variables.
1 parent 6401382 commit 3d836a9

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

PowerShellSyntax.tmLanguage

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,12 +1437,28 @@
14371437
<string>invalid.illegal.powershell</string>
14381438
</dict>
14391439
<dict>
1440+
<key>captures</key>
1441+
<dict>
1442+
<key>1</key>
1443+
<dict>
1444+
<key>name</key>
1445+
<string>constant.language.powershell</string>
1446+
</dict>
1447+
<key>2</key>
1448+
<dict>
1449+
<key>name</key>
1450+
<string>constant.language.powershell</string>
1451+
</dict>
1452+
<key>3</key>
1453+
<dict>
1454+
<key>name</key>
1455+
<string>entity.other.attribute-name.powershell</string>
1456+
</dict>
1457+
</dict>
14401458
<key>comment</key>
14411459
<string>Automatic variables - read-only.</string>
14421460
<key>match</key>
1443-
<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</string>
1444-
<key>name</key>
1445-
<string>constant.language.powershell</string>
1461+
<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>
14461462
</dict>
14471463
<dict>
14481464
<key>captures</key>

0 commit comments

Comments
 (0)