Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
((comment) @injection.content
  (#set! injection.language "comment"))

; https://docs.docker.com/build/bake/reference/#targetdockerfile-inline
(block
  (identifier) @_target (#eq? @_target "target")
  (body
    (attribute
      (identifier) @_attr (#eq? @_attr "dockerfile-inline")
      (expression
        (template_expr
          (heredoc_template
            (template_literal) @injection.content)))))
  (#set! injection.language "dockerfile"))

(function_call
  (identifier) @_name (#eq? @_name "regex")
  (function_arguments
    (expression
      (literal_value
        (string_lit
          (template_literal) @injection.content))))
  (#set! injection.language "regex"))