mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -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
|
|
@ -2,7 +2,11 @@
|
|||
;; Primitives
|
||||
(boolean) @boolean
|
||||
(comment) @comment @spell
|
||||
(shebang_comment) @comment
|
||||
((comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^[-][-][-]"))
|
||||
((comment) @comment.documentation
|
||||
(#lua-match? @comment.documentation "^[-][-](%s?)@"))
|
||||
(shebang_comment) @preproc
|
||||
(identifier) @variable
|
||||
((identifier) @variable.builtin
|
||||
(#eq? @variable.builtin "self"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue