tree-sitter-dockerfile/test/corpus/volume.txt

70 lines
801 B
Plaintext
Raw Permalink Normal View History

2021-05-09 22:11:30 -04:00
==================
Single volume
==================
VOLUME /myvol
---
(source_file
(volume_instruction
(path)))
==================
Multiple volumes
==================
volume /myvol1 /myvol2
---
(source_file
(volume_instruction
(path)
(path)))
==================
Multiline volumes
==================
VOLUME /myvol1 \
/myvol2
---
(source_file
(volume_instruction
(path)
(line_continuation)
2021-05-09 22:11:30 -04:00
(path)))
==================
Array
==================
VOLUME ["/test/myvol"]
---
(source_file
(volume_instruction
(json_string_array
(json_string))))
2021-05-09 22:11:30 -04:00
==================
Multiline array
==================
VOLUME ["/test/myvol", \
"/test/myvol2"]
---
(source_file
(volume_instruction
(json_string_array
(json_string)
(line_continuation)
(json_string))))