You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I opened a zsh plugin and noticed that the highlighting was messed up
# v
0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}"
if I remove the % character in (%) the string is highlighted correctly but with that character the start quote gets ignored and anything after the second quote is highlighted as a string.
this also affects bash files as it seems there is no zsh specific configuration by default.
Reproduction Steps
I tried this:
hx any.zsh
make a string with "${(%)}" or other special characters except #, $, or &
I expected this to happen:
to highlight the string normally even if it is invalid (although in this case it isn't).
Instead, this happened:
the start quote is ignored and the end quote is parsed as a start qoute
Summary
I opened a zsh plugin and noticed that the highlighting was messed up
if I remove the
%
character in(%)
the string is highlighted correctly but with that character the start quote gets ignored and anything after the second quote is highlighted as a string.this also affects bash files as it seems there is no zsh specific configuration by default.
Reproduction Steps
I tried this:
hx any.zsh
"${(%)}"
or other special characters except#
,$
, or&
I expected this to happen:
to highlight the string normally even if it is invalid (although in this case it isn't).
Instead, this happened:
the start quote is ignored and the end quote is parsed as a start qoute
Helix log
No response
Platform
Linux
Terminal Emulator
wezterm 20220319-142410-0fcdea07
Helix Version
helix 22.05-dev (a963565)
The text was updated successfully, but these errors were encountered: