@@ -163,28 +163,31 @@ $variable.Name.Method( )
163
163
# In double-quoted strings, only the variable should be highlighted, not the property
164
164
" This is my $variable .Name!"
165
165
# <- punctuation.definition.string.begin
166
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
166
+ # ^^^^^^^^^^^ meta.string string.quoted.double
167
+ # ^^^^^^^^^ meta.interpolation variable.other.readwrite - string
167
168
# ^ punctuation.definition.variable
168
- # ^^^^^^^^ variable.other.readwrite
169
- # ^^^^^ - variable - punctuation
169
+ # ^^^^^^ meta.string string.quoted.double - meta.interpolation - variable - punctuation
170
170
# ^ punctuation.definition.string.end
171
171
172
172
# When used in a subexpression, both should be highlighted
173
173
" This is my $ ( $variable.Name ) !"
174
174
# <- punctuation.definition.string.begin
175
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
175
+ # ^^^^^^^^^^^ meta.string string.quoted.double
176
+ # ^^^^^^^^^^^^^^^^^ meta.string meta.interpolation - string
177
+ # ^^ meta.string string.quoted.double - meta.interpolation
178
+ # ^^ punctuation.section.interpolation.begin
179
+ # ^^^^^^^^^ variable.other.readwrite
176
180
# ^ punctuation.definition.variable
177
- # ^ punctuation.section.group.begin
178
- # ^ punctuation.section.group.end
179
- # ^^^^^^^^ variable.other.readwrite
180
181
# ^ punctuation.accessor.dot
181
182
# ^^^^ variable.other.member
183
+ # ^ punctuation.section.interpolation.end
182
184
# ^ punctuation.definition.string.end
183
185
184
186
# $ENV:ComputerName should be highlighted
185
187
" This is the name of my computer: $ENV: ComputerName "
186
188
# <- punctuation.definition.string.begin
187
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
189
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.double
190
+ # ^^^^^^^^^^^^^^^^^ meta.string meta.interpolation - string
188
191
# ^ punctuation.definition.variable
189
192
# ^^^^ support.variable.drive
190
193
# ^^^^^^^^^^^^ variable.other.readwrite
@@ -193,7 +196,8 @@ $variable.Name.Method( )
193
196
# Here as well
194
197
" This is the name of my computer: ${ENV: ComputerName} "
195
198
# <- punctuation.definition.string.begin
196
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
199
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.double
200
+ # ^^^^^^^^^^^^^^^^^^^ meta.string meta.interpolation - string
197
201
# ^ punctuation.definition.variable
198
202
# ^ punctuation.section.braces.begin
199
203
# ^^^^ support.variable.drive
@@ -402,42 +406,43 @@ $a3[1..2]
402
406
403
407
# Single quoted strings
404
408
' This is a single quoted string.'
405
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.single
409
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.single
406
410
' $This is a single '' quoted'' string.'
407
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.single
411
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.single
408
412
# ^^ constant.character.escape
409
413
# ^^ constant.character.escape
410
414
' This is a
411
415
single quoted string.'
412
- # ^^^^^^^^^^^^^^^^^^^^^^ string.quoted.single
416
+ # ^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.single
413
417
' This #also'
414
- # ^^^^^^^^^^^^ string.quoted.single
418
+ # ^^^^^^^^^^^^ meta.string string.quoted.single
415
419
' $(Invoke-Something)'
416
- # ^^^^^^^^^^^^^^^^^^^^^ string.quoted.single - meta - variable - support
420
+ # ^^^^^^^^^^^^^^^^^^^^^ meta. string string .quoted.single - meta.interpolation - variable - support
417
421
' This "string" is nice.'
418
- # ^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.single
422
+ # ^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.single
419
423
420
424
# Double quoted strings
421
425
" This is a double quoted string."
422
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
426
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.double
423
427
" $This is a double "" quoted"" string."
424
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
425
- # ^^^^^ variable.language
428
+ # ^ meta.string string.quoted.double
429
+ # ^^^^^ meta.string meta.interpolation variable.language - string
430
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.double - meta.interpolation
426
431
# ^^ constant.character.escape
427
432
# ^^ constant.character.escape
428
433
" This is a
429
434
double quoted string."
430
- # ^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
435
+ # ^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.double
431
436
" This #also"
432
- # ^^^^^^^^^^^^ string.quoted.double
437
+ # ^^^^^^^^^^^^ meta.string string.quoted.double
433
438
" $ ( Invoke-Something ) "
434
- # ^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
435
- # ^ punctuation.definition.variable
436
- # ^ punctuation.section.group .begin
437
- # ^ interpolated.complex.source support.function
438
- # ^ punctuation.section.group .end
439
+ # ^ meta.string string.quoted.double
440
+ # ^^^^^^^^^^^^^^^^^^^ meta.string meta.interpolation - string
441
+ # ^^ punctuation.section.interpolation .begin
442
+ # ^^^^^^^^^^^^^^^^ support.function
443
+ # ^ punctuation.section.interpolation .end
439
444
" This 'string' is nice."
440
- # ^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
445
+ # ^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.double
441
446
442
447
# Double quoted here-string
443
448
@"
@@ -1376,7 +1381,7 @@ $file = join-path $env:SystemDrive "$([System.io.path]::GetRandomFileName()).ps1
1376
1381
# ^ support.function
1377
1382
# ^ support.variable.drive
1378
1383
# ^ variable.other.readwrite
1379
- # ^ string.quoted.double punctuation.definition.variable
1384
+ # ^^ meta. string meta.interpolation punctuation.section.interpolation.begin
1380
1385
# ^ storage.type
1381
1386
# @@@@@@@@@@@@@@@@@ reference
1382
1387
$ScriptBlock | Out-File $file - Force
@@ -1423,7 +1428,7 @@ get-thing | Out-WithYou > $null # destroy
1423
1428
# ^^ constant.character.escape
1424
1429
# ^^^^^^^^^^^^^^^^^^^ - constant
1425
1430
" When you call a method: $ ( get-number | % { invoke-command $ ( [string ]::format(" Like (this{0})" , " what?" ) ) $var } ) "
1426
- # ^ punctuation.definition.variable
1431
+ # ^^ punctuation.section.interpolation.begin
1427
1432
# ^ keyword.operator.logical.pipe
1428
1433
# ^ meta.group.complex.subexpression punctuation.section.group.begin
1429
1434
# ^^^^^^ storage.type
@@ -1435,8 +1440,8 @@ get-thing | Out-WithYou > $null # destroy
1435
1440
# ^ meta.group.complex.subexpression punctuation.section.group.end
1436
1441
# ^ punctuation.definition.variable
1437
1442
" This is the DebugPreference variable: $DebugPreference "
1438
- # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double
1439
- # ^^^^^^^^^^^^^^^^ variable.language
1443
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string string.quoted.double
1444
+ # ^^^^^^^^^^^^^^^^ meta.string meta.interpolation variable.language - string
1440
1445
1441
1446
$ConfirmPreference $DebugPreference $ErrorActionPreference $ErrorView
1442
1447
# ^ variable.language punctuation
0 commit comments