add emulate -L zsh to _zsh_highlight_main_highlighter. resolves issue #83

This commit is contained in:
Jud Porter 2011-12-02 16:44:33 -05:00
parent d2715e2cb3
commit d82eee5212

View File

@ -61,6 +61,7 @@ _zsh_highlight_main_highlighter_predicate()
# Main syntax highlighting function. # Main syntax highlighting function.
_zsh_highlight_main_highlighter() _zsh_highlight_main_highlighter()
{ {
emulate -L zsh
setopt localoptions extendedglob bareglobqual setopt localoptions extendedglob bareglobqual
local start_pos=0 end_pos highlight_glob=true new_expression=true arg style local start_pos=0 end_pos highlight_glob=true new_expression=true arg style
typeset -a ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR typeset -a ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR