File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ _zsh_highlight_main__type() {
163
163
fi
164
164
if (( $+ aliases[(e)$1 ] )) && (( aliases_allowed )) ; then
165
165
REPLY=alias
166
- elif (( $+ saliases[(e)${1##* .} ] )) ; then
166
+ elif [[ $1 == * . * && -n ${1 % . * } ]] && (( $+ saliases[(e)${1##* .} ] )) ; then
167
167
REPLY=' suffix alias'
168
168
elif (( $reswords [(Ie)$1 ] )) ; then
169
169
REPLY=reserved
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ alias alias1="ls"
31
31
alias -s alias2=" echo"
32
32
function alias1() {} # to check that it's highlighted as an alias, not as a function
33
33
34
- BUFFER=' x.alias2; alias1'
34
+ BUFFER=' x.alias2; alias1; alias2 '
35
35
36
36
# Set expected_region_highlight as a function of zsh version.
37
37
#
@@ -49,4 +49,6 @@ expected_region_highlight+=(
49
49
" 9 9 commandseparator" # ;
50
50
" 11 16 alias" # alias1
51
51
" 11 16 command" # alias1 (ls)
52
+ " 17 17 commandseparator" # ;
53
+ " 19 24 unknown-token" # alias2
52
54
)
You can’t perform that action at this time.
0 commit comments