mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Highlight array parameters in command position.
This commit is contained in:
parent
caa727f9ac
commit
1bf54d7f26
2 changed files with 14 additions and 2 deletions
|
|
@ -29,10 +29,12 @@
|
|||
|
||||
local x=/usr/bin/env
|
||||
local y=sudo
|
||||
BUFFER='$x "argument"; $y'
|
||||
local -a z; z=(zsh -f)
|
||||
BUFFER='$x "argument"; $y; $z'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 command" # $x
|
||||
"4 13 double-quoted-argument" # "argument"
|
||||
"16 17 precommand" # $y (sudo)
|
||||
"20 21 command" # $z - 'zsh' being the command
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue