HiPhish / rainbow-delimiters.nvim

Rainbow delimiters for Neovim with Tree-sitter
https://gitlab.com/HiPhish/rainbow-delimiters.nvim
Apache License 2.0
532 stars 39 forks source link

fix: java `dimensions` highlight #83

Closed kawre closed 9 months ago

kawre commented 9 months ago

The workaround i found is to treat dimensions node as a single delimiter which will highlight it the same color. One minor thing is that it will also highlight any text inside dimensions the same color as the delimiter but it's not grammatically correct anyway so it's not a big problem.

HiPhish commented 9 months ago

Oh wow, that's a really clever fix. Thank you.

One minor thing is that it will also highlight any text inside dimensions the same color as the delimiter but it's not grammatically correct anyway so it's not a big problem.

If the code is not grammatically correct all bets are off anyway, so I'm fine with this trade-off.