mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Fix issue #248: Highlight 'pkexec' as a precommand.
This commit is contained in:
parent
73ee7c1f6c
commit
4f3910cbba
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue