summaryrefslogtreecommitdiff
path: root/queries/javascript/injections.scm
blob: bec0f315e85ba2a661c0574019f7ca4917d717e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
((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)))

(call_expression
  function: ((identifier) @_name
             (#eq? @_name "hbs"))
  arguments: ((template_string) @glimmer
              (#offset! @glimmer 0 1 0 -1)))