mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-09-20 08:29:04 +02:00
'main': Let the type determination ignore global aliases when it ignores regular ones.
This commit is contained in:
parent
e2dddb91c6
commit
08839bbd87
|
@ -180,7 +180,7 @@ _zsh_highlight_main__type() {
|
|||
if (( $+aliases[(e)$1] )); then
|
||||
may_cache=0
|
||||
fi
|
||||
if (( ${+galiases[(e)$1]} )); then
|
||||
if (( ${+galiases[(e)$1]} )) && (( aliases_allowed )); then
|
||||
REPLY='global alias'
|
||||
elif (( $+aliases[(e)$1] )) && (( aliases_allowed )); then
|
||||
REPLY=alias
|
||||
|
|
|
@ -34,5 +34,5 @@ local s=x
|
|||
BUFFER=$'$s'
|
||||
|
||||
expected_region_highlight=(
|
||||
'1 2 unknown-token "fixed in the next commit"' # $s
|
||||
'1 2 unknown-token' # $s
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue