aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorNico Salm <nico@salm.dev>2026-01-16 01:09:25 -0600
committerChristian Clason <ch.clason+github@icloud.com>2026-01-17 12:12:37 +0100
commit19261d56ed222ed93c6310943af0954d54c618fa (patch)
tree272eaa4ada39c8f94685d739fbf61b167561f26b /runtime
parentbot(parsers): update bpftrace, desktop, editorconfig, glimmer, javadoc, liqui... (diff)
downloadnvim-treesitter-19261d56ed222ed93c6310943af0954d54c618fa.tar
nvim-treesitter-19261d56ed222ed93c6310943af0954d54c618fa.tar.gz
nvim-treesitter-19261d56ed222ed93c6310943af0954d54c618fa.tar.bz2
nvim-treesitter-19261d56ed222ed93c6310943af0954d54c618fa.tar.lz
nvim-treesitter-19261d56ed222ed93c6310943af0954d54c618fa.tar.xz
nvim-treesitter-19261d56ed222ed93c6310943af0954d54c618fa.tar.zst
nvim-treesitter-19261d56ed222ed93c6310943af0954d54c618fa.zip
fix(rust): highlight doc comment markers as @comment.documentation
Co-authored-by: LunarLambda <LunarLambda@users.noreply.github.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/rust/highlights.scm5
1 files changed, 4 insertions, 1 deletions
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