Open yanchith opened 11 months ago
Is this also reproducible when you use via tree sitter mode: https://github.com/rust-lang/rust-mode?tab=readme-ov-file#tree-sitter ?
I haven't tried. To be honest, I was having a hard time of getting tree-sitter to work on Windows¹ back when I created this thread: both compiling the grammars on Windows or finding a precompiled grammar that's not severely out of date (or incomplete, I couldn't tell). After a few hours, I decided it's best for me to avoid tree-sitter until the experience improves. If you know of a good place of getting an up to date for Rust grammar, ideally already compiled, I'd be grateful.
Does your question mean that support for Emacs 29 without tree-sitter is not planned?
¹: Not my only dev machine, but I'd like to keep it running.
Does your question mean that support for Emacs 29 without tree-sitter is not planned?
Both are supported right now with optional opt in to tree-sitter. But bugs like this are very hard to fix in the traditional rust-mode since it relies on regular expressions to match patterns which is error prone. Using something like tree sitter offers a better solution to these kind of highlighting and other issues.
If you know of a good place of getting an up to date for Rust grammar, ideally already compiled, I'd be grateful.
Unfortunately I don't know of a good place to recommend. I personally use the one from Nix package manager, but I don't think it has Windows support.
With identical config 29.1 behaves like in the screenshot below and 28.2 works fine. Notice how only some of the keywords are highlighted.