Issue 32: 'xargs' and 'zargs' are followed by commands (thanks to claytron)

This commit is contained in:
Julien Nicoulaud 2011-01-06 08:41:52 +01:00
parent ca4d7fbd06
commit 0a50e2a830
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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