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: Add highlight selector for doc comments (#15384)

earomc1a9af10ca257
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm
index b98812fe391..44fd61d871b 100644
--- a/crates/languages/src/rust/highlights.scm
+++ b/crates/languages/src/rust/highlights.scm
@@ -133,6 +133,11 @@
(block_comment)
] @comment
+[
+ (line_comment (doc_comment))
+ (block_comment (doc_comment))
+] @comment.doc
+
[
"!"
"!="