From 0392fdc46af4bfd4c5456aa0b4fa63a8561b83ad Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Sat, 8 Jan 2011 18:03:52 +0100 Subject: [PATCH] Issue 34: Do not highlight non commands as commands. Signed-off-by: Julien Nicoulaud --- zsh-syntax-highlighting.zsh | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index f118b74..3b21b45 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -43,27 +43,9 @@ ZSH_HIGHLIGHT_MATCHING_BRACKETS_STYLES=( 'fg=cyan,bold' ) -# Tokens that are always followed by a command. +# Tokens that are always immediately followed by a command. ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS=( - '|' - '||' - ';' - '&' - '&&' - 'sudo' - 'start' - 'time' - 'strace' - 'noglob' - 'nocorrect' - 'command' - 'builtin' - 'whence' - 'which' - 'where' - 'whereis' - 'xargs' - 'zargs' + '|' '||' ';' '&' '&&' 'noglob' 'nocorrect' 'builtin' ) # ZLE highlight types.