diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-07-04 16:42:11 -0700 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2024-07-04 19:54:22 -0400 |
| commit | f0dbe180004d3566a994b1093e3a37893cc141c1 (patch) | |
| tree | 80ee212f66cdddae94bfd30260c8e766c8cfac87 /queries/jsdoc | |
| parent | bot(readme): update (diff) | |
| download | nvim-treesitter-f0dbe180004d3566a994b1093e3a37893cc141c1.tar nvim-treesitter-f0dbe180004d3566a994b1093e3a37893cc141c1.tar.gz nvim-treesitter-f0dbe180004d3566a994b1093e3a37893cc141c1.tar.bz2 nvim-treesitter-f0dbe180004d3566a994b1093e3a37893cc141c1.tar.lz nvim-treesitter-f0dbe180004d3566a994b1093e3a37893cc141c1.tar.xz nvim-treesitter-f0dbe180004d3566a994b1093e3a37893cc141c1.tar.zst nvim-treesitter-f0dbe180004d3566a994b1093e3a37893cc141c1.zip | |
feat(jsdoc): add missing highlights
Diffstat (limited to 'queries/jsdoc')
| -rw-r--r-- | queries/jsdoc/highlights.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/queries/jsdoc/highlights.scm b/queries/jsdoc/highlights.scm index e20a1bb5a..c6459efb7 100644 --- a/queries/jsdoc/highlights.scm +++ b/queries/jsdoc/highlights.scm @@ -1,3 +1,40 @@ (tag_name) @keyword @nospell (type) @type @nospell + +[ + "{" + "}" + "[" + "]" +] @punctuation.bracket + +[ + ":" + "/" + "." + "#" + "~" +] @punctuation.delimiter + +(identifier) @variable + +(tag + (tag_name) @_name + (identifier) @function + (#any-of? @_name "@callback" "@function" "@func" "@method")) + +(tag + (tag_name) @_name + (identifier) @variable.parameter + (#any-of? @_name "@param" "@arg" "@argument")) + +(tag + (tag_name) @_name + (identifier) @property + (#any-of? @_name "@prop" "@property")) + +(tag + (tag_name) @_name + (identifier) @type + (#eq? @_name "@typedef")) |
