mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -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
|
||||
|
||||
(comment) @comment
|
||||
|
||||
(directive_location
|
||||
(executable_directive_location) @type.builtin)
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,6 @@
|
|||
((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