feat(rust): add doc comments

This commit is contained in:
Christian Clason 2024-02-16 11:47:10 +01:00
parent eb1914bb10
commit 17d68ac13c

View file

@ -220,20 +220,11 @@
(block_comment)
] @comment @spell
((line_comment) @comment.documentation
(#lua-match? @comment.documentation "^///[^/]"))
(line_comment
(doc_comment)) @comment.documentation
((line_comment) @comment.documentation
(#lua-match? @comment.documentation "^///$"))
((line_comment) @comment.documentation
(#lua-match? @comment.documentation "^//!"))
((block_comment) @comment.documentation
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
((block_comment) @comment.documentation
(#lua-match? @comment.documentation "^/[*][!]"))
(block_comment
(doc_comment)) @comment.documentation
(boolean_literal) @boolean