tests: Cover 'single-quoted-argument', 'double-hyphen-option', and 'function'.

This is part of issue zsh-users/zsh-syntax-highlighting#198.
This commit is contained in:
Daniel Shahaf
2015-09-18 19:21:21 +00:00
parent 627eb71940
commit 416934202e
3 changed files with 86 additions and 1 deletions

View File

@@ -29,8 +29,9 @@
# -------------------------------------------------------------------------------------------------
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=$unused_highlight
BUFFER=": \$'*'"
BUFFER=": \$'*' 'foo'"
expected_region_highlight=(
"3 6 $ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]" # $'*' - not a glob
"8 12 $ZSH_HIGHLIGHT_STYLES[single-quoted-argument]" # 'foo'
)