aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2024-09-10 13:47:17 -0400
committerGitHub <noreply@github.com>2024-09-10 17:47:17 +0000
commit6a3c6a42a6e24414bdf337b05a84a0ea013dd155 (patch)
tree077cb5872abb064c87b56ee4eba3d52128fb8f97
parentRevert "ci(update): bump create-pull-request to v7 and sign commits" (diff)
downloadnvim-treesitter-6a3c6a42a6e24414bdf337b05a84a0ea013dd155.tar
nvim-treesitter-6a3c6a42a6e24414bdf337b05a84a0ea013dd155.tar.gz
nvim-treesitter-6a3c6a42a6e24414bdf337b05a84a0ea013dd155.tar.bz2
nvim-treesitter-6a3c6a42a6e24414bdf337b05a84a0ea013dd155.tar.lz
nvim-treesitter-6a3c6a42a6e24414bdf337b05a84a0ea013dd155.tar.xz
nvim-treesitter-6a3c6a42a6e24414bdf337b05a84a0ea013dd155.tar.zst
nvim-treesitter-6a3c6a42a6e24414bdf337b05a84a0ea013dd155.zip
fix(rust): comment marker should not be `@operator` (#7135)
-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