mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Perf: add ambiguous-hashed-command.zsh
This commit is contained in:
parent
6a210f1408
commit
c6f62dd69f
2 changed files with 43 additions and 0 deletions
|
|
@ -173,6 +173,8 @@ _zsh_highlight_main__type() {
|
|||
#
|
||||
# % hash zsh=$commands[zsh]
|
||||
# % zsh # <-- here the type of `zsh` is "command" rather than "hashed"
|
||||
#
|
||||
# See highlighters/main/test-data/ambiguous-hashed-command.zsh.
|
||||
if [[ $cmd == /(|*/)$1 && $path[(Ie)${cmd:h}] != 0 ]]; then
|
||||
REPLY=command
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue