Commit graph

7 commits

Author SHA1 Message Date
Riley Bruins
1249b4cfce
fix(jsdoc): only highlight slashes in paths (#7387)
Otherwise the final slash in a doc comment `*/` will also be
highlighted.
2024-11-21 17:00:11 -08:00
Kai Moschcau
6511cd984a
fix(jsdoc): disable spelling for identifiers (#7172) 2024-09-24 09:26:55 +02:00
Riley Bruins
f0dbe18000 feat(jsdoc): add missing highlights 2024-07-04 19:54:22 -04:00
Sergey Slipchenko
051193acba
fix(jsdoc): add nospell to type and tag_name 2024-01-21 16:04:34 +02:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Santos Gallegos
0df7c4aa39
Fix jsdoc: play nice with the comment parser (#1108)
Using separate queries makes it work as expected.
Also, for the comment parser to be able to override the other tokens
we need to remove the comment from highlights (this shouldn't be a
problem since that section is already highlighted as a comment).

And, the order of the captures matter,
having jsdoc first will have more priority over `@param`.

Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1069
2021-03-27 10:51:16 -05:00
Steven Sojka
d9454afd93 feat(js): add jsdoc lang injection 2020-10-27 14:08:14 +01:00