Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
rust: Fix doc comment highlighting (#17976)
Marshall Bowersdb18f7a2b008
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scmindex 0c3aa7efc7a..8d4bad06e06 100644--- a/crates/languages/src/rust/highlights.scm+++ b/crates/languages/src/rust/highlights.scm@@ -139,7 +139,6 @@] @comment.doc[- "!""!=""%""%="@@ -159,7 +158,6 @@"..""..=""..."- "/""/="":"";"@@ -183,6 +181,10 @@"?"] @operator+; Avoid highlighting these as operators when used in doc comments.+(unary_expression "!" @operator)+operator: "/" @operator+(lifetime) @lifetime(parameter (identifier) @variable.parameter)