Skip to content

Commit 23eed76

Browse files
authored
Fix PowerShell highlighting of built-in constant variables (#223)
Use a TextMate scope for PowerShell built-in constant variables that most themes actually have defined in tokenColors. I see that C#, Ruby and Go TextMate files uses variable.other.constant.<language>, so I went with that. https://github.com/search?q=repo%3Amicrosoft%2Fvscode%20variable.other.constant.&type=code
1 parent a08b55b commit 23eed76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎PowerShellSyntax.tmLanguage‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@
10071007
<key>0</key>
10081008
<dict>
10091009
<key>name</key>
1010-
<string>support.constant.variable.powershell</string>
1010+
<string>variable.other.constant.powershell</string>
10111011
</dict>
10121012
<key>1</key>
10131013
<dict>
@@ -1291,7 +1291,7 @@
12911291
<key>0</key>
12921292
<dict>
12931293
<key>name</key>
1294-
<string>support.constant.variable.powershell</string>
1294+
<string>variable.other.constant.powershell</string>
12951295
</dict>
12961296
<key>1</key>
12971297
<dict>

0 commit comments

Comments
 (0)