mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(rust): highlight doc comment markers as @comment.documentation
Co-authored-by: LunarLambda <LunarLambda@users.noreply.github.com>
This commit is contained in:
parent
7c14161403
commit
19261d56ed
1 changed files with 4 additions and 1 deletions
|
|
@ -476,9 +476,12 @@
|
||||||
[
|
[
|
||||||
(line_comment)
|
(line_comment)
|
||||||
(block_comment)
|
(block_comment)
|
||||||
|
] @comment @spell
|
||||||
|
|
||||||
|
[
|
||||||
(outer_doc_comment_marker)
|
(outer_doc_comment_marker)
|
||||||
(inner_doc_comment_marker)
|
(inner_doc_comment_marker)
|
||||||
] @comment @spell
|
] @comment.documentation
|
||||||
|
|
||||||
(line_comment
|
(line_comment
|
||||||
(doc_comment)) @comment.documentation
|
(doc_comment)) @comment.documentation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue