mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
tests: Specify the style key instead of the style itself
This commit is contained in:
parent
c54c076cfa
commit
a830613467
70 changed files with 246 additions and 246 deletions
|
|
@ -35,13 +35,13 @@ ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=$unused_highlight
|
|||
BUFFER='sudo -C3 -u otheruser -i ls /; sudo ; sudo -u ;'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 4 ${(q-)ZSH_HIGHLIGHT_STYLES[precommand]}" # sudo
|
||||
"6 8 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -C3
|
||||
"10 11 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -u
|
||||
"13 21 ${(q-)ZSH_HIGHLIGHT_STYLES[default]}" # otheruser
|
||||
"23 24 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -i
|
||||
"26 27 ${(q-)ZSH_HIGHLIGHT_STYLES[command]}" # ls
|
||||
"29 29 ${(q-)ZSH_HIGHLIGHT_STYLES[path]}" # /
|
||||
"37 37 ${(q-)ZSH_HIGHLIGHT_STYLES[unknown-token]}" # ;, error because empty command
|
||||
"47 47 ${(q-)ZSH_HIGHLIGHT_STYLES[unknown-token]}" # ;, error because incomplete command
|
||||
"1 4 precommand" # sudo
|
||||
"6 8 single-hyphen-option" # -C3
|
||||
"10 11 single-hyphen-option" # -u
|
||||
"13 21 default" # otheruser
|
||||
"23 24 single-hyphen-option" # -i
|
||||
"26 27 command" # ls
|
||||
"29 29 path" # /
|
||||
"37 37 unknown-token" # ;, error because empty command
|
||||
"47 47 unknown-token" # ;, error because incomplete command
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue