tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
337 stars 96 forks source link

Syntax is broken for some weird cases #203

Closed juhaku closed 9 months ago

juhaku commented 9 months ago

The treesitter syntax has been broken for quite some time for some weird edgecases. E.g. here is a conditional functionality that should be enabled only when such feature is actually enabled. However this feature is not enabled and everything is correct with the code base but still the treesitter grammar adds the misleading undercurls to the code. image

What it actually should look like is as follows: image

I'll post some more when I come across them

amaanq commented 9 months ago

That's LSP stuff, not tree-sitter