From 1afa63d4570a1c2c6597dd57f3b9df263755a053 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 23 Jan 2025 16:17:44 -0500 Subject: [PATCH] rust: Highlight `/` and `!` within comments as comments --- runtime/queries/rust/highlights.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 89449202e..32424ac2a 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)