Don't highlight escaped globbing.

Fixes zsh-users/zsh-syntax-highlighting#193.
This commit is contained in:
Daniel Shahaf
2015-09-27 16:28:32 +00:00
parent 6488284814
commit 52a2ef644b
2 changed files with 5 additions and 2 deletions

View File

@@ -28,10 +28,12 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
BUFFER=': foo* bar?'
BUFFER=': foo* bar? *baz qux\?'
expected_region_highlight=(
"1 1 $ZSH_HIGHLIGHT_STYLES[builtin]" # :
"3 6 $ZSH_HIGHLIGHT_STYLES[globbing]" # foo*
"8 11 $ZSH_HIGHLIGHT_STYLES[globbing]" # bar?
"13 16 $ZSH_HIGHLIGHT_STYLES[globbing]" # *baz
"18 22 $ZSH_HIGHLIGHT_STYLES[default]" # qux\?
)