Skip to content

Commit 874633b

Browse files
committed
1 parent 8635da9 commit 874633b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Support/PowershellSyntax.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@
770770
<key>2</key>
771771
<dict>
772772
<key>name</key>
773-
<string>support.variable.automatic.powershell</string>
773+
<string>support.constant.automatic.powershell</string>
774774
</dict>
775775
<key>3</key>
776776
<dict>
@@ -779,7 +779,7 @@
779779
</dict>
780780
</dict>
781781
<key>comment</key>
782-
<string>Automatic variables are not constants, but they are read-only...</string>
782+
<string>Automatic variables are not constants, but they are read-only. In monokai (default) color schema support.variable doesn't have color, so we use constant.</string>
783783
<key>match</key>
784784
<string>(\$)(?i:(\$|\^|\?|_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This))((?:\.(?:\p{L}|\d|_)+)*\b)?\b</string>
785785
</dict>

tests/samples/test-file.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ function Get-MemberSignature {
4848
# The whole script name is the command, not just the part before the extension
4949
Some-Script.ps1 -argOne one -argTwo "two"
5050
&"Some Script.bat" -param $PSVersionTable -arg 43
51+
52+
$args
53+
$input
54+
$PSScriptRoot
5155
}
5256
}
5357

0 commit comments

Comments
 (0)