noop: Follow-up to last: improve readability.

This commit is contained in:
Daniel Shahaf 2015-10-30 20:14:03 +02:00
parent a59f442d2d
commit 28abb960de

View File

@ -278,10 +278,11 @@ _zsh_highlight_main_highlighter()
# is how [[ ... ]] is highlighted, too.
style=$ZSH_HIGHLIGHT_STYLES[reserved-word]
_zsh_highlight_main_add_region_highlight $start_pos $((start_pos + 2)) $style
already_added=1
if [[ $arg[-2,-1] == '))' ]]; then
_zsh_highlight_main_add_region_highlight $((end_pos - 2)) $end_pos $style
fi
already_added=1
fi
elif [[ $arg == '()' || $arg == $'\x28' ]]; then
# anonymous function
# subshell