tree-sitter-dockerfile/corpus/run.txt

60 lines
736 B
Plaintext
Raw Normal View History

2021-05-09 22:11:30 -04:00
==================
Shell command
==================
RUN echo "test"
---
(source_file
(run_instruction
(shell_command
(shell_fragment))))
2021-05-09 22:11:30 -04:00
==================
Shell command multiline
==================
RUN echo "test" \
"foo" \
bar
---
(source_file
(run_instruction
(shell_command
(shell_fragment)
(line_continuation)
(shell_fragment)
(line_continuation)
(shell_fragment))))
2021-05-09 22:11:30 -04:00
==================
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))))