mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
Merge b760eef0ba into 4916d6592e
This commit is contained in:
commit
051d1ad753
3 changed files with 29 additions and 3 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
((shell_command
|
((run_instruction
|
||||||
(shell_fragment) @injection.content)
|
(shell_command) @injection.content)
|
||||||
(#set! injection.language "bash")
|
(#set! injection.language "bash")
|
||||||
(#set! injection.combined))
|
(#set! injection.include-children))
|
||||||
|
|
||||||
((run_instruction
|
((run_instruction
|
||||||
(heredoc_block) @injection.content)
|
(heredoc_block) @injection.content)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
FROM foo
|
FROM foo
|
||||||
RUN bar
|
RUN bar
|
||||||
# ^ @bash
|
# ^ @bash
|
||||||
|
FROM haha
|
||||||
|
# ^ @!bash
|
||||||
RUN \
|
RUN \
|
||||||
baz
|
baz
|
||||||
# ^ @bash
|
# ^ @bash
|
||||||
|
|
||||||
|
COPY apt apt
|
||||||
|
# ^ @!bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue