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

View File

@ -132,6 +132,7 @@ _zsh_highlight_main_highlighter()
) )
ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS=( ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS=(
'builtin' 'command' 'exec' 'nocorrect' 'noglob' '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 # Tokens that, at (naively-determined) "command position", are followed by