The code with a problem is:
function named {
# do something
}
alias foo=bar # highlights correctly
function {
# do something anonymously
}
alias foo=bar # highlights incorrectly
alias bar=baz # recovered
function {
# do something anonymously
}
alias foo=bar # no problem
It looks like:
It should look like:
The keyword alias should be highlighted even right after the anonymous function.
Reference: https://zsh.sourceforge.io/Doc/Release/Functions.html#Anonymous-Functions
The code with a problem is:
It looks like:
It should look like:
The keyword
aliasshould be highlighted even right after the anonymous function.Reference: https://zsh.sourceforge.io/Doc/Release/Functions.html#Anonymous-Functions