Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0862053f5 | ||
|
|
b4e667795c | ||
|
|
45194671af | ||
|
|
19981ef9ea |
@@ -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=(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user