Merge branch 'master' of gh:nicoulaj/zsh-syntax-highlighting

This commit is contained in:
Mounier Florian 2011-01-05 13:50:19 +01:00
commit 2ca730ed17

View File

@ -340,7 +340,7 @@ _zsh_highlight-zle-buffer() {
case $res in
*': reserved') style=$ZSH_HIGHLIGHT_STYLES[reserved-word];;
*': alias') style=$ZSH_HIGHLIGHT_STYLES[alias]
local aliased_command=${"$(alias $arg)"#*=}
local aliased_command="${"$(alias $arg)"#*=}"
if [[ ${${ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS[(r)$aliased_command]:-}:+yes} = 'yes' && ${${ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS[(r)$arg]:-}:+yes} != 'yes' ]]; then
ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS+=($arg)
fi