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
@amaanq would you say that this is a duplicate of #214?
but I'm pretty sure statefulness would be needed for stuff within quotes within escaped quotes - that's just too much (the main issue is the $)
This sounds like a similar class of problem. I'm happy to close if you'd rather. I've just silenced shellcheck on this line in the codebase I discovered this in to use the syntax that treesitter understands.
That said, shellcheck actually recommends this syntax, so more reports of this type of issue might crop up.
The grammar doesn't appear to handle quoted expansion inside of
${}
when removing the smallest suffix pattern via%
.This is broken:
"${1%"$2"*}"
, this is not:"${1%$2*}"
. The broken behavior only appears when followed by a double quoted string.I've tried to reduce the issue as much as possible to ease debugging. The following demonstrates the issue:
Note: not quoting the expansion within
"${}"
is warned about by shellcheck SC2295, which is how I discovered this issue.Using treesitter with neovim:
The text was updated successfully, but these errors were encountered: