aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/yuck/injections.scm
blob: 298a8d0700942c8d5a6893d4482f924c1d587d31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
((comment) @injection.content
  (#set! injection.language "comment"))

((function_call
  name: (ident) @_name
  .
  (simplexpr)
  .
  (simplexpr
    (string
      (string_fragment) @injection.content)+))
  (#any-of? @_name "replace" "search" "matches" "captures")
  (#set! injection.language "regex")
  (#set! injection.combined))

((function_call
  name: (ident) @_name
  .
  (simplexpr)
  .
  (simplexpr
    (string
      (string_fragment) @injection.content)+))
  (#eq? @_name "jq")
  (#set! injection.language "jq")
  (#set! injection.combined))