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
76d61360a7
commit
bf055f7df2
3 changed files with 26 additions and 19 deletions
|
|
@ -29,6 +29,8 @@
|
|||
|
||||
local x=/usr/bin/env
|
||||
local y=sudo
|
||||
sudo(){}
|
||||
|
||||
BUFFER='$x "argument"; $y'
|
||||
|
||||
expected_region_highlight=(
|
||||
|
|
@ -36,5 +38,5 @@ expected_region_highlight=(
|
|||
"4 13 default" # "argument"
|
||||
"4 13 double-quoted-argument" # "argument"
|
||||
"14 14 commandseparator" # ;
|
||||
"16 17 precommand 'parameter expansion precedes precommand recognition'" # $y (sudo)
|
||||
"16 17 precommand" # $y (sudo)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue