@@ -81,7 +81,6 @@ contexts:
8181 scope : keyword.control.conditional.select.powershell
8282 # Declaration
8383 - match : \b(?i:var){{kebab_break}}
84- # scope: storage.type.variable.powershell
8584 scope : keyword.declaration.variable.powershell
8685 - match : \b(?i:(?:dynamic)?param){{kebab_break}}
8786 scope : keyword.declaration.parameter.powershell # This scope is not standard
@@ -340,26 +339,6 @@ contexts:
340339 pop : true
341340 - include : comment-line
342341
343- hashtables :
344- - match : (@)(\{)
345- captures :
346- 1 : keyword.other.hashtable.begin.powershell
347- 2 : punctuation.section.braces.begin.powershell
348- push :
349- - meta_scope : meta.hashtable.powershell
350- - match : \}
351- scope : punctuation.section.braces.end.powershell
352- pop : true
353- - match : \b(['"]?)(\w+)(['"]?)\s*(=)\s*
354- scope : meta.hashtable.assignment.powershell
355- captures :
356- 1 : punctuation.definition.string.begin.powershell
357- 2 : variable.other.readwrite.powershell
358- 3 : punctuation.definition.string.end.powershell
359- 4 : keyword.operator.assignment.powershell
360- - include : script-blocks
361- - include : statements
362-
363342 script-blocks :
364343 - match : (%)?(\{)
365344 captures :
@@ -585,6 +564,25 @@ contexts:
585564 pop : true
586565 - include : expressions
587566
567+ hashtables :
568+ - match : (@)(\{)
569+ captures :
570+ 1 : keyword.other.hashtable.begin.powershell
571+ 2 : punctuation.section.braces.begin.powershell
572+ push :
573+ - meta_scope : meta.hashtable.powershell
574+ - match : \}
575+ scope : punctuation.section.braces.end.powershell
576+ pop : true
577+ - match : \b(['"]?)(\w+)(['"]?)\s*(=)\s*
578+ scope : meta.hashtable.assignment.powershell
579+ captures :
580+ 1 : punctuation.definition.string.begin.powershell
581+ 2 : variable.other.readwrite.powershell
582+ 3 : punctuation.definition.string.end.powershell
583+ 4 : keyword.operator.assignment.powershell
584+ - include : expressions
585+
588586 subexpressions :
589587 - match : (\$)(\()
590588 captures :
0 commit comments