@@ -36,7 +36,7 @@ contexts:
36
36
- include : hashtable
37
37
- include : strings
38
38
- include : script-block
39
- # - include: double-quoted-string-escapes
39
+ - include : escape-characters
40
40
- include : numeric-constant
41
41
- match : (@)(\()
42
42
captures :
@@ -204,7 +204,7 @@ contexts:
204
204
- include : variable-no-property
205
205
- include : hashtable
206
206
- include : script-block
207
- - include : double-quoted-string-escapes
207
+ - include : escape-characters
208
208
- include : double-quoted-string
209
209
- include : type
210
210
- include : numeric-constant
@@ -281,7 +281,7 @@ contexts:
281
281
scope : punctuation.definition.string.end.powershell
282
282
pop : true
283
283
- include : variable-no-property
284
- - include : double-quoted-string-escapes
284
+ - include : escape-characters
285
285
- include : interpolation
286
286
- match : \@'(?=$)
287
287
scope : punctuation.definition.string.begin.powershell
@@ -309,7 +309,9 @@ contexts:
309
309
scope : punctuation.definition.string.begin.powershell
310
310
push :
311
311
- meta_scope : string.quoted.double.powershell
312
- - include : double-quoted-string-escapes
312
+ - match : ' ""'
313
+ scope : constant.character.escape.powershell
314
+ - include : escape-characters
313
315
- match : ' "'
314
316
scope : punctuation.definition.string.end.powershell
315
317
pop : true
@@ -320,13 +322,11 @@ contexts:
320
322
- match : ' `\s*$'
321
323
scope : keyword.other.powershell
322
324
323
- double-quoted-string-escapes :
325
+ escape-characters :
324
326
- match : ' `[0abenfrvt"'' $`]'
325
327
scope : constant.character.escape.powershell
326
328
- match : ' `u\{\h+\}'
327
329
scope : constant.character.escape.powershell
328
- - match : ' ""'
329
- scope : constant.character.escape.powershell
330
330
331
331
function :
332
332
- match : ^(?:\s*)(?i)(function|filter|configuration|workflow)\s+(?:(global|local|script|private):)?((?:\p{L}|\d|_|-|\.)+)
0 commit comments