nvim-treesitter/queries
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
..
bash Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
beancount delete locals queries for beancount 2021-03-22 07:11:10 +01:00
bibtex add basic queries for bibtex 2021-03-22 22:19:10 +01:00
c Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
c_sharp Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
clojure Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
comment Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
cpp Fix C++ locals 2021-03-16 18:52:43 +01:00
css Fix invalid node type in CSS queries 2021-03-16 18:52:43 +01:00
dart Remove invalid dart query 2021-03-16 18:52:43 +01:00
devicetree Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
ecma Fix jsdoc: play nice with the comment parser (#1108) 2021-03-27 10:51:16 -05:00
fennel Fix fennel queries 2021-03-16 18:52:43 +01:00
gdscript Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
glimmer Update glimmer queries from plugin 2021-03-18 04:03:53 +01:00
go go: add builtin types 2021-03-19 13:48:24 +01:00
graphql Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
html Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
java highlights(java): Highlight fields (members and member access) (#1107) 2021-03-26 13:25:28 -05:00
javascript chore: create ecma base for use in js and ts which fixes jsx issues 2021-03-10 17:34:11 +01:00
jsdoc Fix jsdoc: play nice with the comment parser (#1108) 2021-03-27 10:51:16 -05:00
json Json: update folds 2021-02-13 21:29:37 +01:00
jsonc Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
jsx feat: added more indent queries 2021-01-14 14:43:04 +01:00
julia Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
kotlin attribute in stead of annotation 2021-03-20 17:52:07 +01:00
ledger Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
lua Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
markdown Add inline html comments 2021-02-25 13:42:25 +01:00
nix Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
ocaml Re-add OCaml query that lead to crash before tree-sitter fix 2021-03-16 18:52:43 +01:00
ocaml_interface Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
ocamllex Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
php Add indents for php 2021-03-22 18:02:10 +01:00
python Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
ql Mark several invalid queries 2021-03-16 18:52:43 +01:00
query highlights(query): Add modeline query after bugfix 2021-03-16 18:52:43 +01:00
r Add definition.parameter query to 'r/locals.scm'. 2021-03-16 18:52:43 +01:00
regex Regex highlights: Add constant highlight for class_character 2021-01-03 19:05:38 +01:00
rst Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
ruby folds support and somewhat better indents for ruby 2021-03-15 19:54:30 +01:00
rust highlights(rust): Highlight dereferenced closure parameters 2021-03-26 20:12:38 +01:00
sparql Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
supercollider Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
svelte Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
teal Update teal highlights 2021-03-23 22:20:30 +01:00
toml Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
tsx feat: added more indent queries 2021-01-14 14:43:04 +01:00
turtle Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
typescript Update jsonc to 0.19.0 2021-03-16 18:52:43 +01:00
verilog Update verilog to 0.19.2 2021-03-16 18:52:43 +01:00
vue Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
yaml Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
zig Added Zig grammar 2021-03-23 12:36:34 +01:00