Improve rust syntax highlighting.
Check for existing issues
- [X] Completed
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
some additional examples
zed
VSCode
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.
@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.
I really, really like having type arguments/lifetimes both colorized and italicized.
Neovim
Zed
It 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.