mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
feat: add @comment.documentation where applicable
This commit is contained in:
parent
3a82b58745
commit
5a87bc98da
32 changed files with 256 additions and 58 deletions
|
|
@ -4,7 +4,18 @@
|
|||
(line_comment)
|
||||
(block_comment)
|
||||
(nesting_block_comment)
|
||||
] @comment
|
||||
] @comment @spell
|
||||
|
||||
((line_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^///[^/]"))
|
||||
((line_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^///$"))
|
||||
|
||||
((block_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
|
||||
|
||||
((nesting_block_comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^/[+][+][^+].*[+]/$"))
|
||||
|
||||
[
|
||||
"(" ")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue