tests: Specify the style key instead of the style itself
This commit is contained in:
@@ -31,9 +31,9 @@ ZSH_HIGHLIGHT_STYLES[default]=$unused_highlight
|
||||
BUFFER='!foo bar !baz ! ; !'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 4 ${(q-)ZSH_HIGHLIGHT_STYLES[history-expansion]}" # !foo
|
||||
"6 8 ${(q-)ZSH_HIGHLIGHT_STYLES[default]}" # bar
|
||||
"10 13 ${(q-)ZSH_HIGHLIGHT_STYLES[history-expansion]}" # !baz
|
||||
"15 15 ${(q-)ZSH_HIGHLIGHT_STYLES[default]}" # ! (before the semicolon)
|
||||
"19 19 ${(q-)ZSH_HIGHLIGHT_STYLES[reserved-word]}" # ! (after the semicolon)
|
||||
"1 4 history-expansion" # !foo
|
||||
"6 8 default" # bar
|
||||
"10 13 history-expansion" # !baz
|
||||
"15 15 default" # ! (before the semicolon)
|
||||
"19 19 reserved-word" # ! (after the semicolon)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user