Unnamed repository; edit this file 'description' to name the repository.
rust: Highlight `/` and `!` within comments as comments
Michael Davis 2025-01-24
parent 5f62c5c · commit 1afa63d
-rw-r--r--runtime/queries/rust/highlights.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 89449202..32424ac2 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -30,6 +30,8 @@
(string_literal)
(raw_string_literal)
] @string
+(outer_doc_comment_marker "/" @comment)
+(inner_doc_comment_marker "!" @comment)
[
(line_comment)
(block_comment)