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) (block_comment)
] @comment @spell ] @comment @spell
((line_comment) @comment.documentation (line_comment
(#lua-match? @comment.documentation "^///[^/]")) (doc_comment)) @comment.documentation
((line_comment) @comment.documentation (block_comment
(#lua-match? @comment.documentation "^///$")) (doc_comment)) @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 "^/[*][!]"))
(boolean_literal) @boolean (boolean_literal) @boolean