tests: Specify the style key instead of the style itself

This commit is contained in:
Matthew Martin
2016-04-24 14:22:24 -05:00
parent c54c076cfa
commit a830613467
70 changed files with 246 additions and 246 deletions

View File

@@ -31,17 +31,17 @@ ZSH_HIGHLIGHT_STYLES[redirection]=$unused_highlight
BUFFER='sudo -u >/tmp otheruser ls; sudo ls; sudo -i ls'
expected_region_highlight=(
"1 4 ${(q-)ZSH_HIGHLIGHT_STYLES[precommand]}" # sudo
"6 7 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -u
"9 9 ${(q-)ZSH_HIGHLIGHT_STYLES[redirection]}" # >
"10 13 ${(q-)ZSH_HIGHLIGHT_STYLES[path]}" # /tmp
"15 23 ${(q-)ZSH_HIGHLIGHT_STYLES[default]}" # otheruser
"25 26 ${(q-)ZSH_HIGHLIGHT_STYLES[command]}" # ls
"27 27 ${(q-)ZSH_HIGHLIGHT_STYLES[commandseparator]}" # ;
"29 32 ${(q-)ZSH_HIGHLIGHT_STYLES[precommand]}" # sudo
"34 35 ${(q-)ZSH_HIGHLIGHT_STYLES[command]}" # ls
"36 36 ${(q-)ZSH_HIGHLIGHT_STYLES[commandseparator]}" # ;
"38 41 ${(q-)ZSH_HIGHLIGHT_STYLES[precommand]}" # sudo
"43 44 ${(q-)ZSH_HIGHLIGHT_STYLES[single-hyphen-option]}" # -i
"46 47 ${(q-)ZSH_HIGHLIGHT_STYLES[command]}" # ls
"1 4 precommand" # sudo
"6 7 single-hyphen-option" # -u
"9 9 redirection" # >
"10 13 path" # /tmp
"15 23 default" # otheruser
"25 26 command" # ls
"27 27 commandseparator" # ;
"29 32 precommand" # sudo
"34 35 command" # ls
"36 36 commandseparator" # ;
"38 41 precommand" # sudo
"43 44 single-hyphen-option" # -i
"46 47 command" # ls
)