Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Improve Rust highlight queries (#17097)

everdroneb6c3ef7e7988
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm
index 44fd61d871b..0c3aa7efc7a 100644
--- a/crates/languages/src/rust/highlights.scm
+++ b/crates/languages/src/rust/highlights.scm
@@ -184,3 +184,8 @@
] @operator
(lifetime) @lifetime
+
+(parameter (identifier) @variable.parameter)
+
+(attribute_item) @attribute
+(inner_attribute_item) @attribute