Improve rust syntax highlighting. #24361
Replies: 4 comments 2 replies
-
some additional examples zed![]() VSCode![]() |
Beta Was this translation helpful? Give feedback.
-
Is this still a global issue or is it just my zed? It seems like the syntax highlight lacks a bit, a lot of things share the same colour, especially when compared to neovim. Thank you for the amazing effort everyone. |
Beta Was this translation helpful? Give feedback.
-
@iamnbutler What are your thoughts on coloring lifetimes in our themes? It would indeed be nice to make them stand out a bit more like the examples people are showing. |
Beta Was this translation helpful? Give feedback.
-
I really, really like having type arguments/lifetimes both colorized and italicized. NeovimZedIt would be awesome to reuse my existing tree-sitter queries to merge/override zed's queries and just tweak the colors associated with the matches. Colors that differentiate between primitive types and type identifiers would also be great. The lack of a user-facing, fine-grained customization for syntax highlighting is less than ideal. That said, it seems like zed is close to super-customizable and the vim integration probably the best outside of vim/neovim. |
Beta Was this translation helpful? Give feedback.
-
Check for existing issues
Describe the feature
Some improvement points I found of zed rust syntax highlighting are below.
lifetime
Color rust lifetime.
Zed ⬇️

RustRover (Expected) ⬇️


generic
Color generic with a separate color. (now it's same as "type")


Zed ⬇️
RustRover (Expected) ⬇️
proc macro
Color proc macros with a separate color. (Now it's same as "editor.foreground")


Zed ⬇️
RustRover (Expected) ⬇️


macro's name
Recognize macro name's ! as a whole. (I don't know if this is intentional)
Zed ⬇️

If applicable, add mockups / screenshots to help present your vision of the feature
No response
Beta Was this translation helpful? Give feedback.
All reactions