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
The closing square bracket is what's causing the problem, even though it is legal syntax.
Minimal reproducible example
#!/bin/bash
a='abc[]'
a="${a%]}"printf"Something broke here!\n"iffalse;thenecho'Just showing some further code'echo'Ooops!'fi
Screenshots
Working
Not working
System information
tree-sitter version 0.24.3
neovim version v0.10.2
Apologies if this was already reported.
The text was updated successfully, but these errors were encountered:
RoyalDonkey
changed the title
Incorrect highlighting on shell parameter expansion "${var#]}"
Incorrect highlighting on shell parameter expansion "${var%]}"Jan 12, 2025
@RoyalDonkey Thanks for reporting, I can confirm this same issue:
I'm pretty sure that this broke sometime between now and when I reported #254. After #254 I modified the code that I was working on to support tree-sitter-bash highlighting and now I see that the same script no longer works again :(
The closing square bracket is what's causing the problem, even though it is legal syntax.
Minimal reproducible example
Screenshots
System information
tree-sitter version 0.24.3
neovim version v0.10.2
Apologies if this was already reported.
The text was updated successfully, but these errors were encountered: