File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1393
1393
</dict >
1394
1394
</dict >
1395
1395
<key >match </key >
1396
- <string >(?i:(\$|@ )(global|local|private|script|using|workflow):((?:\p{L}|\d|_)+)) </string >
1396
+ <string >(?i:(\$)(global|local|private|script|using|workflow):((?:\p{L}|\d|_)+)) </string >
1397
1397
</dict >
1398
1398
<dict >
1399
1399
<key >captures </key >
1592
1592
<key >include </key >
1593
1593
<string >#variableNoProperty </string >
1594
1594
</dict >
1595
- <dict >
1596
- <key >include </key >
1597
- <string >#variable </string >
1598
- </dict >
1599
1595
<dict >
1600
1596
<key >include </key >
1601
1597
<string >#doubleQuotedStringEscapes </string >
Original file line number Diff line number Diff line change @@ -173,6 +173,12 @@ $variable.Name
173
173
# ^^^^^^^^^^^^ variable.other.readwrite.powershell
174
174
# ^ punctuation.definition.string.end.powershell
175
175
176
+ # @splat references only work in argument mode, should not highlight in strings
177
+ " This is a @double quoted string."
178
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double.powershell
179
+ # ^ not:punctuation.definition.variable.powershell
180
+ # ^ not:variable.other.readwrite.powershell
181
+
176
182
# Single quotes string
177
183
' This is a string'
178
184
# <- punctuation.definition.string.begin.powershell string.quoted.single.powershell
@@ -369,6 +375,9 @@ $This is a 'double quoted'
369
375
# <- punctuation.definition.variable.powershell
370
376
# ^ string.quoted.double.heredoc.powershell support.variable.automatic.powershell
371
377
Isn't it "nice"??
378
+ There is no @platting here!
379
+ # ^ not:punctuation.definition.variable.powershell
380
+ # ^ not:variable.other.readwrite.powershell
372
381
"@
373
382
# <- string.quoted.double.heredoc.powershell
374
383
# <- string.quoted.double.heredoc.powershell
You can’t perform that action at this time.
0 commit comments