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 (#16747)
everdronebf6767bc81bf
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scmindex 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) @attributediff --git a/crates/languages/src/rust/injections.scm b/crates/languages/src/rust/injections.scmindex 0ce91f22877..39042e92c6a 100644--- a/crates/languages/src/rust/injections.scm+++ b/crates/languages/src/rust/injections.scm@@ -5,3 +5,11 @@(macro_rule(token_tree) @content(#set! "language" "rust"))++(block_comment+ (doc_comment) @content+ (#set! "language" "markdown"))++(line_comment+ (doc_comment) @content+ (#set! "language" "markdown"))