feat: add @comment.documentation where applicable

This commit is contained in:
Amaan Qureshi 2023-03-02 08:06:35 -05:00
parent 3a82b58745
commit 5a87bc98da
32 changed files with 256 additions and 58 deletions

View file

@ -248,7 +248,36 @@
; -- Comments
(comment) @comment
(comment) @comment @spell
((comment) @comment.documentation
(#lua-match? @comment.documentation "^///[^/]"))
((comment) @comment.documentation
(#lua-match? @comment.documentation "^///$"))
((comment) @comment.documentation
. [(unit) (declProc)])
(declTypes
(comment) @comment.documentation
. (declType))
(declSection
(comment) @comment.documentation
. [(declField) (declProc)])
(declEnum
(comment) @comment.documentation
. (declEnumValue))
(declConsts
(comment) @comment.documentation
. (declConst))
(declVars
(comment) @comment.documentation
. (declVar))
(pp) @preproc
; -- Type declaration