mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
main: Fix check for suffix aliases (fixes #574)
This commit is contained in:
parent
4ce56a821e
commit
3e6d1375c9
2 changed files with 4 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ _zsh_highlight_main__type() {
|
|||
fi
|
||||
if (( $+aliases[(e)$1] )) && (( aliases_allowed )); then
|
||||
REPLY=alias
|
||||
elif (( $+saliases[(e)${1##*.}] )); then
|
||||
elif [[ $1 == *.* && -n ${1%.*} ]] && (( $+saliases[(e)${1##*.}] )); then
|
||||
REPLY='suffix alias'
|
||||
elif (( $reswords[(Ie)$1] )); then
|
||||
REPLY=reserved
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue