Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/docker-bake/injections.scm')
| -rw-r--r-- | runtime/queries/docker-bake/injections.scm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/docker-bake/injections.scm b/runtime/queries/docker-bake/injections.scm new file mode 100644 index 00000000..6028785d --- /dev/null +++ b/runtime/queries/docker-bake/injections.scm @@ -0,0 +1,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")) |