rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 176 forks source link

Inconsistent highlighting at the start of a file #412

Closed ddolgov closed 3 months ago

ddolgov commented 2 years ago

I am using manually installed rust-mode.el (no optional libraries, except rust-utils.el)) and syntax highlighting is inconsistent at the beginning of the file (see picture). If I add/delete some lines, the colors might change (for example, highlighting starts to work on all lines except the first one).

Am I doing something wrong? How can I fix this?

Ubuntu 18.04 Emacs 24.5.1 rust-mode.el 0.5.0

image

psibi commented 5 months ago

Is this reproducible with tree sitter support: https://github.com/rust-lang/rust-mode?tab=readme-ov-file#tree-sitter ?

psibi commented 3 months ago

I'm closing this issue for now as I haven't been able to reproduce it recently using tree sitter and haven't heard back. Please feel free to reopen it if you encounter the issue again in the future.