tree-sitter-dockerfile/corpus/run.txt

60 lines
736 B
Plaintext

==================
Shell command
==================
RUN echo "test"
---
(source_file
(run_instruction
(shell_command
(shell_fragment))))
==================
Shell command multiline
==================
RUN echo "test" \
"foo" \
bar
---
(source_file
(run_instruction
(shell_command
(shell_fragment)
(line_continuation)
(shell_fragment)
(line_continuation)
(shell_fragment))))
==================
Run with shell empty array
==================
run []
---
(source_file
(run_instruction
(string_array)))
==================
Run with shell array
==================
run ["echo", "test"]
---
(source_file
(run_instruction
(string_array
(double_quoted_string)
(double_quoted_string))))