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/ecma | |
| 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/ecma')
| -rw-r--r-- | queries/ecma/highlights.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/queries/ecma/highlights.scm b/queries/ecma/highlights.scm index 97feae8f3..82a0b99ab 100644 --- a/queries/ecma/highlights.scm +++ b/queries/ecma/highlights.scm @@ -123,11 +123,12 @@ (undefined) ] @constant.builtin -(comment) @comment +(comment) @comment @spell -(hash_bang_line) @preproc +((comment) @comment.documentation + (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$")) -(comment) @spell +(hash_bang_line) @preproc (string) @string @spell (template_string) @string |
