aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rust
diff options
context:
space:
mode:
Diffstat (limited to 'queries/rust')
-rw-r--r--queries/rust/highlights.scm25
1 files 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