nvim-treesitter/queries/ecma/injections.scm
2021-04-06 21:27:47 +02:00

23 lines
569 B
Scheme

(comment) @jsdoc
(comment) @comment
((regex_pattern) @regex)
(call_expression
function: ((identifier) @language)
arguments: ((template_string) @content
(#offset! @content 0 1 0 -1)))
(call_expression
function: ((identifier) @_name
(#eq? @_name "gql"))
arguments: ((template_string) @graphql
(#offset! @graphql 0 1 0 -1)))
(call_expression
function: ((identifier) @_name
(#eq? @_name "hbs"))
arguments: ((template_string) @glimmer
(#offset! @glimmer 0 1 0 -1)))
(regex_pattern) @regex