mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-09-18 08:20:18 +00:00
tests: Specify the style key instead of the style itself
This commit is contained in:
@@ -31,8 +31,8 @@ ZSH_HIGHLIGHT_STYLES[assign]=$unused_highlight
|
||||
BUFFER='A=1 b=("foo" bar)'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 3 ${(q-)ZSH_HIGHLIGHT_STYLES[assign]}" # A=1
|
||||
"5 7 ${(q-)ZSH_HIGHLIGHT_STYLES[assign]}" # b=(
|
||||
"8 12 ${(q-)ZSH_HIGHLIGHT_STYLES[double-quoted-argument]}" # "foo"
|
||||
"17 17 ${(q-)ZSH_HIGHLIGHT_STYLES[assign]}" # )
|
||||
"1 3 assign" # A=1
|
||||
"5 7 assign" # b=(
|
||||
"8 12 double-quoted-argument" # "foo"
|
||||
"17 17 assign" # )
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user