From 6a3c6a42a6e24414bdf337b05a84a0ea013dd155 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 10 Sep 2024 13:47:17 -0400 Subject: fix(rust): comment marker should not be `@operator` (#7135) --- queries/rust/highlights.scm | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index 046b541d1..2836a95c2 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -214,17 +214,6 @@ (identifier) @function.macro .)) ; Literals -[ - (line_comment) - (block_comment) -] @comment @spell - -(line_comment - (doc_comment)) @comment.documentation - -(block_comment - (doc_comment)) @comment.documentation - (boolean_literal) @boolean (integer_literal) @number @@ -463,3 +452,17 @@ macro: (identifier) @keyword.debug "!" @keyword.debug (#eq? @keyword.debug "dbg")) + +; Comments +[ + (line_comment) + (block_comment) + (outer_doc_comment_marker) + (inner_doc_comment_marker) +] @comment @spell + +(line_comment + (doc_comment)) @comment.documentation + +(block_comment + (doc_comment)) @comment.documentation -- cgit v1.2.3-70-g09d2