zsh-syntax-highlighting icon indicating copy to clipboard operation
zsh-syntax-highlighting copied to clipboard

Line noise parameter expansions aren't highlighted quite right

Open danielshahaf opened this issue 3 years ago • 2 comments

: "$#$foo" and : "$##bar" aren't highlighted correctly. These are, respectively, the length of $$ (zsh's PID) and the length of $# (argc).

danielshahaf avatar Jan 27 '22 14:01 danielshahaf

On the other hand, $+$ and $+# do not test $$ and $# for existence, unlike, say, $+argv.

danielshahaf avatar Jan 27 '22 15:01 danielshahaf

We should also point out to zsh upstream that $## does not behave as this comment in subst.c claims.

danielshahaf avatar Jan 27 '22 15:01 danielshahaf