zsh-syntax-highlighting
zsh-syntax-highlighting copied to clipboard
Defining a function without the keyword `function` highlights its identifier as unknown/error
Steps to reproduce:
- Start the zsh in new terminal emulator, without any configuration
termite -e 'zsh -dfi'
- Source z-sy-h from where it's installed, and use only
main
highlightersource "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ZSH_HIGHLIGHT_HIGHLIGHTERS=(main)
- Compare the highlighting of the function identifier with and without preceding keyword
function
Versions:
zsh - 5.9-1
zsh-syntax-highlighting - 0.7.1-1
Duplicate of https://github.com/zsh-users/zsh-syntax-highlighting/issues/223. (Though to be fair, I remembered that issue was labeled needs:lookahead, so it was easy for me to find it.)
Duplicate of #223. (Though to be fair, I remembered that issue was labeled needs:lookahead, so it was easy for me to find it.)
Fair enough. Why not close this one then?