From 0a50e2a8301d84a6d3108417698fcc4a5c4bb383 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Thu, 6 Jan 2011 08:41:52 +0100 Subject: [PATCH] Issue 32: 'xargs' and 'zargs' are followed by commands (thanks to claytron) --- README.md | 1 + zsh-syntax-highlighting.zsh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76b2337..19e22ab 100644 --- a/README.md +++ b/README.md @@ -86,3 +86,4 @@ This must be done **after** the script is sourced, otherwise your styles will be * [Suraj N. Kurapati](https://github.com/sunaku) * [Takeshi Banse](https://github.com/hchbaw) * [Sorin Ionescu](https://github.com/SpookyET) + * [Clayton Parker]https://github.com/claytron) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 4cfb89a..ccae6b7 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -62,6 +62,8 @@ ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS=( 'which' 'where' 'whereis' + 'xargs' + 'zargs' ) # ZLE highlight types. @@ -168,7 +170,7 @@ _zsh_highlight-zle-buffer() { start_pos=$end_pos done -# Bracket matching + # Bracket matching bracket_color_size=${#ZSH_HIGHLIGHT_MATCHING_BRACKETS_STYLES} if ((bracket_color_size > 0)); then typeset -A levelpos lastoflevel matching revmatching