mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-02-12 23:11:30 +01:00
main: alias style overrides precommand style
This commit is contained in:
parent
c138123397
commit
e3edddd8ec
2 changed files with 2 additions and 2 deletions
|
|
@ -650,7 +650,7 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||
next_word=':start:'
|
||||
elif [[ $this_word == *':start:'* ]] && (( in_redirection == 0 )); then # $arg is the command word
|
||||
if (( ${+precommand_options[$arg]} )) && _zsh_highlight_main__is_runnable $arg; then
|
||||
style=precommand
|
||||
[[ $res != alias ]] && style=precommand
|
||||
flags_with_argument=${precommand_options[$arg]%:*}
|
||||
flags_sans_argument=${precommand_options[$arg]#*:}
|
||||
next_word=${next_word//:regular:/}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue