mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
graphql: add injection to javascript and add comment query
This commit is contained in:
parent
565ab1a1bd
commit
7cea298144
2 changed files with 7 additions and 0 deletions
|
|
@ -98,6 +98,8 @@
|
||||||
|
|
||||||
(description) @comment
|
(description) @comment
|
||||||
|
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
(directive_location
|
(directive_location
|
||||||
(executable_directive_location) @type.builtin)
|
(executable_directive_location) @type.builtin)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,6 @@
|
||||||
((comment) @jsdoc)
|
((comment) @jsdoc)
|
||||||
|
|
||||||
|
(call_expression
|
||||||
|
function: ((identifier) @_name
|
||||||
|
(#eq? @_name "gql"))
|
||||||
|
arguments: ((template_string) @graphql))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue