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

((sigil
  (sigil_name) @_sigil_name
  (quoted_content) @injection.content)
 (#match? @_sigil_name "^(r|R)$")
 (#set! injection.language "regex")
 (#set! injection.combined))

((sigil
  (sigil_name) @_sigil_name
  (quoted_content) @injection.content)
 (#match? @_sigil_name "^(h|H)$")
 (#set! injection.language "heex")
 (#set! injection.combined))