From 19261d56ed222ed93c6310943af0954d54c618fa Mon Sep 17 00:00:00 2001 From: Nico Salm Date: Fri, 16 Jan 2026 01:09:25 -0600 Subject: [PATCH] fix(rust): highlight doc comment markers as @comment.documentation Co-authored-by: LunarLambda --- runtime/queries/rust/highlights.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index de9d09684..2342dcfa3 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -476,9 +476,12 @@ [ (line_comment) (block_comment) +] @comment @spell + +[ (outer_doc_comment_marker) (inner_doc_comment_marker) -] @comment @spell +] @comment.documentation (line_comment (doc_comment)) @comment.documentation