zsh-syntax-highlighting
zsh-syntax-highlighting copied to clipboard
Line noise parameter expansions aren't highlighted quite right
: "$#$foo" and : "$##bar" aren't highlighted correctly. These are, respectively, the length of $$ (zsh's PID) and the length of $# (argc).
On the other hand, $+$ and $+# do not test $$ and $# for existence, unlike, say, $+argv.
We should also point out to zsh upstream that $## does not behave as this comment in subst.c claims.