aboutsummaryrefslogtreecommitdiffstats
path: root/queries/javascript/injections.scm
blob: 170acda860001a3cfee3a226533d61ef26dfa1da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
((comment) @jsdoc)

((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)))