aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/hare/injections.scm
blob: 88a3f1cdd16f64be376b0293713e7a9e275e6e46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
((comment) @injection.content
  (#set! injection.language "comment"))

((call_expression
  .
  (_) @_fnname
  .
  "("
  .
  (_
    [
      (string_content)
      (raw_string_content)
    ] @injection.content)
  .
  ")")
  (#any-of? @_fnname "compile" "regex::compile")
  (#set! injection.language "regex"))