Fix issue #248: Highlight 'pkexec' as a precommand.

This commit is contained in:
Daniel Shahaf 2015-12-04 23:40:30 +00:00
parent 73ee7c1f6c
commit 4f3910cbba
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ _zsh_highlight_main_highlighter()
)
ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS=(
'builtin' 'command' 'exec' 'nocorrect' 'noglob'
'pkexec' # immune to #121 because it's usually not passed --option flags
)
# Tokens that, at (naively-determined) "command position", are followed by