mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
parent
f56e3fad23
commit
3174e375f4
3 changed files with 8 additions and 1 deletions
|
|
@ -824,6 +824,10 @@ _zsh_highlight_main_highlighter_highlight_list()
|
|||
next_word=${next_word//:regular:/}
|
||||
next_word+=':sudo_opt:'
|
||||
next_word+=':start:'
|
||||
if [[ $arg == 'exec' ]]; then
|
||||
# To allow "exec 2>&1;" where there's no command word
|
||||
next_word+=':regular:'
|
||||
fi
|
||||
else
|
||||
case $res in
|
||||
reserved) # reserved word
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue