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
|
|
@ -31,10 +31,10 @@ ZSH_HIGHLIGHT_STYLES[redirection]=$unused_highlight
|
|||
BUFFER='sudo 2>./. -u otheruser ls'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 4 ${(q-)ZSH_HIGHLIGHT_STYLES[precommand]}" # sudo
|
||||
"6 7 ${(q-)ZSH_HIGHLIGHT_STYLES[redirection]}" # 2>
|
||||
"8 10 ${(q-)ZSH_HIGHLIGHT_STYLES[path]}" # ./. # a 3-character path, for alignment with sudo-redirection2.zsh
|
||||
"12 13 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -u
|
||||
"15 23 ${(q-)ZSH_HIGHLIGHT_STYLES[default]}" # otheruser
|
||||
"25 26 ${(q-)ZSH_HIGHLIGHT_STYLES[command]}" # ls
|
||||
"1 4 precommand" # sudo
|
||||
"6 7 redirection" # 2>
|
||||
"8 10 path" # ./. # a 3-character path, for alignment with sudo-redirection2.zsh
|
||||
"12 13 single-hyphen-option" # -u
|
||||
"15 23 default" # otheruser
|
||||
"25 26 command" # ls
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue