mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Fix the last commit's issue concerning parameter expansion at command word.
This commit is contained in:
parent
d21d3b31da
commit
40dcbfbcf6
3 changed files with 24 additions and 19 deletions
|
|
@ -34,5 +34,5 @@ BUFFER='$x "argument"; $y'
|
|||
expected_region_highlight=(
|
||||
"1 2 command" # $x
|
||||
"4 13 double-quoted-argument" # "argument"
|
||||
"16 17 precommand 'parameter expansion precedes precommand recognition'" # $y (sudo)
|
||||
"16 17 precommand" # $y (sudo)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -29,9 +29,11 @@
|
|||
|
||||
# «/usr» at this point would be highlighted as path_prefix; so should
|
||||
# a parameter that expands to an equivalent string be highlighted.
|
||||
#
|
||||
# More complicated parameter substitutions aren't eval'd; issue #328.
|
||||
BUFFER='$PWD; ${PWD}'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 4 unknown-token" # $PWD - not eval'd; issue #328
|
||||
"1 4 path" # $PWD
|
||||
"7 12 unknown-token" # ${PWD}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue