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.

rust: Improve highlighting in derive macros (#37439)

Finn Evers6feae92616d4
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm
index 3f44c5fc0e4..ec7e2d42510 100644
--- a/crates/languages/src/rust/highlights.scm
+++ b/crates/languages/src/rust/highlights.scm
@@ -196,12 +196,12 @@ operator: "/" @operator
(identifier) @attribute
(scoped_identifier name: (identifier) @attribute)
(token_tree (identifier) @attribute (#match? @attribute "^[a-z\\d_]*$"))
- (token_tree (identifier) @variable "::" (identifier) @type (#match? @type "^[A-Z]"))
+ (token_tree (identifier) @none "::" (#match? @none "^[a-z\\d_]*$"))
]))
(inner_attribute_item (attribute [
(identifier) @attribute
(scoped_identifier name: (identifier) @attribute)
(token_tree (identifier) @attribute (#match? @attribute "^[a-z\\d_]*$"))
- (token_tree (identifier) @variable "::" (identifier) @type (#match? @type "^[A-Z]"))
+ (token_tree (identifier) @none "::" (#match? @none "^[a-z\\d_]*$"))
]))