mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
'main': Disable a lint warning when env(1) was followed by a pipe.
Fixes #797.
This commit is contained in:
parent
5eb494852e
commit
205bc7ea19
2 changed files with 40 additions and 2 deletions
|
|
@ -916,8 +916,8 @@ _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
|
||||
if [[ $arg == 'exec' || $arg == 'env' ]]; then
|
||||
# To allow "exec 2>&1;" and "env | grep" where there's no command word
|
||||
next_word+=':regular:'
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue