mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-01-30 09:47:13 +08:00
minor: Remove redundant setting of $highlight_glob.
This commit is contained in:
parent
59fbdda64c
commit
2080a441ac
@ -144,7 +144,7 @@ _zsh_highlight_main_highlighter()
|
|||||||
sudo_arg=false
|
sudo_arg=false
|
||||||
else
|
else
|
||||||
sudo=false
|
sudo=false
|
||||||
new_expression=true; highlight_glob=true
|
new_expression=true
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -178,7 +178,7 @@ _zsh_highlight_main_highlighter()
|
|||||||
if [[ $arg[-1] != '(' ]]; then
|
if [[ $arg[-1] != '(' ]]; then
|
||||||
# assignment to a scalar parameter.
|
# assignment to a scalar parameter.
|
||||||
# (For array assignments, the command doesn't start until the ")" token.)
|
# (For array assignments, the command doesn't start until the ")" token.)
|
||||||
new_expression=true; highlight_glob=true
|
new_expression=true
|
||||||
fi
|
fi
|
||||||
elif [[ $arg[0,1] == $histchars[0,1] || $arg[0,1] == $histchars[2,2] ]]; then
|
elif [[ $arg[0,1] == $histchars[0,1] || $arg[0,1] == $histchars[2,2] ]]; then
|
||||||
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
|
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
|
||||||
@ -211,7 +211,7 @@ _zsh_highlight_main_highlighter()
|
|||||||
else # $arg is the file target of a prefix redirection, or a non-command word
|
else # $arg is the file target of a prefix redirection, or a non-command word
|
||||||
if $redirection; then
|
if $redirection; then
|
||||||
redirection=false
|
redirection=false
|
||||||
new_expression=true; highlight_glob=true
|
new_expression=true
|
||||||
fi
|
fi
|
||||||
case $arg in
|
case $arg in
|
||||||
'--'*) style=$ZSH_HIGHLIGHT_STYLES[double-hyphen-option];;
|
'--'*) style=$ZSH_HIGHLIGHT_STYLES[double-hyphen-option];;
|
||||||
|
Loading…
Reference in New Issue
Block a user