Comments on line start are not highlighted correctly #12128
Replies: 6 comments
-
|
Beta Was this translation helpful? Give feedback.
-
2024-11-25.22-36-35.mp4NOTE: I renamed this file to |
Beta Was this translation helpful? Give feedback.
-
This looks like #10992 Incorrect syntax highlighting with CRLF line endings |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce it on master. |
Beta Was this translation helpful? Give feedback.
-
I also can't reproduce on master. |
Beta Was this translation helpful? Give feedback.
-
Are you using a custom |
Beta Was this translation helpful? Give feedback.
-
Summary
Comments at the beginning of a line aren't highlighted properly if there's another comment on the previous line. I've noticed this issue in Rust, but I haven't checked if it happens in other languages.
Reproduction Steps
I tried this:
I expected this to happen:
All the comments should get highlighted correctly
Instead, this happened:
The first character of all comments (except the first one) is not highlighted correctly.
Helix log
No response
Platform
Windows
Terminal Emulator
Windows Terminal App
Installation Method
release page
Helix Version
helix 24.7 (079f544)
Beta Was this translation helpful? Give feedback.
All reactions