This commit is contained in:
Valentin Krasontovitsch 2026-04-03 11:33:06 -04:00 committed by GitHub
commit 051d1ad753
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 3 deletions

View file

@ -1,10 +1,10 @@
((comment) @injection.content
(#set! injection.language "comment"))
((shell_command
(shell_fragment) @injection.content)
((run_instruction
(shell_command) @injection.content)
(#set! injection.language "bash")
(#set! injection.combined))
(#set! injection.include-children))
((run_instruction
(heredoc_block) @injection.content)

View file

@ -0,0 +1,21 @@
FROM python AS base
# <- @keyword
RUN pip install requests && \
# <- @keyword
# ^^^ @function.call
# ^^^ @variable.parameter
echo all done
# ^^^^ @function.call
FROM alpine
# <- @keyword
# <- @!variable.parameter
RUN apk add openssh-client
# <- @keyword
# ^^^ @function.call
CMD ["/usr/bin/sh"]
# <- @keyword
# <- @!variable.parameter

View file

@ -1,6 +1,11 @@
FROM foo
RUN bar
# ^ @bash
FROM haha
# ^ @!bash
RUN \
baz
# ^ @bash
COPY apt apt
# ^ @!bash