mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +08:00
parent
31276c1b64
commit
d6586e2a4f
@ -260,15 +260,18 @@ _zsh_highlight_highlighter_main_paint()
|
|||||||
# have a non-empty $flags_with_argument; see test-data/precommand4.zsh.
|
# have a non-empty $flags_with_argument; see test-data/precommand4.zsh.
|
||||||
local -A precommand_options
|
local -A precommand_options
|
||||||
precommand_options=(
|
precommand_options=(
|
||||||
'command' :pvV # as of zsh 5.4.2
|
# Precommand modifiers as of zsh 5.6.2 cf. zshmisc(1).
|
||||||
'nice' n: # as of current POSIX spec
|
'-' ''
|
||||||
'sudo' Cgprtu:AEHKPSVbhiklnsv # as of sudo 1.8.21p2
|
'builtin' ''
|
||||||
|
'command' :pvV
|
||||||
|
'exec' a:cl
|
||||||
|
'nocorrect' ''
|
||||||
|
'noglob' ''
|
||||||
|
|
||||||
'doas' aCu:Lns # as of OpenBSD's doas(1) dated September 4, 2016
|
'doas' aCu:Lns # as of OpenBSD's doas(1) dated September 4, 2016
|
||||||
'builtin' '' # as of zsh 5.4.2
|
'nice' n: # as of current POSIX spec
|
||||||
'exec' a:cl # as of zsh 5.4.2
|
|
||||||
'nocorrect' '' # as of zsh 5.4.2
|
|
||||||
'noglob' '' # as of zsh 5.4.2
|
|
||||||
'pkexec' '' # doesn't take short options; immune to #121 because it's usually not passed --option flags
|
'pkexec' '' # doesn't take short options; immune to #121 because it's usually not passed --option flags
|
||||||
|
'sudo' Cgprtu:AEHKPSVbhiklnsv # as of sudo 1.8.21p2
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $zsyh_user_options[ignorebraces] == on || ${zsyh_user_options[ignoreclosebraces]:-off} == on ]]; then
|
if [[ $zsyh_user_options[ignorebraces] == on || ${zsyh_user_options[ignoreclosebraces]:-off} == on ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user