summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/query.lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-03-27 10:51:16 -0500
committerGitHub <noreply@github.com>2021-03-27 10:51:16 -0500
commit0df7c4aa39a6097e112f001520d2cea257440ed7 (patch)
tree64743ee563e3f59a975c535df1807d86b164d1ca /lua/nvim-treesitter/query.lua
parentedcac596cefac86714af75caf073dda689478ee9 (diff)
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
Diffstat (limited to 'lua/nvim-treesitter/query.lua')
0 files changed, 0 insertions, 0 deletions