4 Commits
0.1.2 ... 0.1.3

Author SHA1 Message Date
Julien Nicoulaud
a0862053f5 Merge pull request #100 from hchbaw/for-nicoulaj/pattern-local
make $pattern local to _zsh_highlight_pattern_highlighter #97
2012-12-19 10:30:06 -08:00
Takeshi Banse
b4e667795c make $pattern local to _zsh_highlight_pattern_highlighter #97
Signed-off-by: Takeshi Banse <takebi@laafc.net>
2012-12-09 10:43:00 +09:00
Julien Nicoulaud
45194671af Merge pull request #91 from xaocon/master
Added sudo as a precommand
2012-08-26 03:33:34 -07:00
evan
19981ef9ea added sudo as a precommand 2012-08-17 15:52:09 -04:00
2 changed files with 2 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ _zsh_highlight_main_highlighter()
'|' '||' ';' '&' '&&'
)
ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS=(
'builtin' 'command' 'exec' 'nocorrect' 'noglob'
'builtin' 'command' 'exec' 'nocorrect' 'noglob' 'sudo'
)
# Tokens that are always immediately followed by a command.
ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS=(

View File

@@ -42,6 +42,7 @@ _zsh_highlight_pattern_highlighter_predicate()
_zsh_highlight_pattern_highlighter()
{
setopt localoptions extendedglob
local pattern
for pattern in ${(k)ZSH_HIGHLIGHT_PATTERNS}; do
_zsh_highlight_pattern_highlighter_loop "$BUFFER" "$pattern"
done