diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-02 08:06:35 -0500 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-05 17:15:32 -0500 |
| commit | 5a87bc98dabd0d38152a6fa774005f7ecbd40f1b (patch) | |
| tree | 941f6fdcddf4468c10212dd170bae3ff361f867c /queries/pascal/highlights.scm | |
| parent | docs: add `@comment.documentation` (diff) | |
| download | nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.gz nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.bz2 nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.lz nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.xz nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.zst nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.zip | |
feat: add `@comment.documentation` where applicable
Diffstat (limited to 'queries/pascal/highlights.scm')
| -rw-r--r-- | queries/pascal/highlights.scm | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/queries/pascal/highlights.scm b/queries/pascal/highlights.scm index 3a1c484e0..e11e0eaa2 100644 --- a/queries/pascal/highlights.scm +++ b/queries/pascal/highlights.scm @@ -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 |
