File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ contexts:
374374 pop : 1
375375 - include : path-punctuation
376376 - include : escape-sequences
377+ - include : string-wildcards
377378
378379 command-ending-sequences :
379380 - include : line-continuations
@@ -888,8 +889,9 @@ contexts:
888889 scope : keyword.operator.arithmetic.powershell
889890 - match : -(?![[:alpha:]-])
890891 scope : keyword.operator.arithmetic.powershell
891- - match : \*
892+ - match : \*(?!\.?[[:alpha:]])
892893 scope : keyword.operator.arithmetic.powershell
894+ # Exclude foreach shortcut
893895 - match : ' %(?!\s*\{)'
894896 scope : keyword.operator.arithmetic.powershell
895897 - match : \|\||&&
@@ -1114,6 +1116,12 @@ contexts:
11141116 - match : ' [:,;]'
11151117 scope : punctuation.separator.powershell
11161118
1119+ string-wildcards :
1120+ - match : \*
1121+ scope : constant.other.wildcard.asterisk.powershell
1122+ - match : \?
1123+ scope : constant.other.wildcard.questionmark.powershell
1124+
11171125 numbers :
11181126 # Binary numbers
11191127 - match : \b(0[bB])([01]*)({{int_suffix}}?{{unit_suffix}}?)
Original file line number Diff line number Diff line change @@ -924,8 +924,9 @@ $a3[1..2]
924924 ls * .ps1 - recurse
925925# ^^ meta.function-call.powershell variable.function.powershell
926926# @@ reference
927- # ^ keyword.operator.arithmetic.powershell
928- # ^^^^ string.unquoted.powershell
927+ # ^^^^^ string.unquoted.powershell
928+ # ^ constant.other.wildcard.asterisk.powershell
929+ # ^ punctuation.separator.powershell
929930# ^^^^^^^^ variable.parameter.option.powershell
930931# ^ punctuation.definition.parameter.powershell
931932
You can’t perform that action at this time.
0 commit comments