tree-sitter-dockerfile/test/corpus/volume.txt
tvrinssen 1bf9daef46
Support heredocs (#45)
This adds support for heredocs in Dockerfiles. This required adding an external scanner to store the required state.

Co-authored-by: Camden Cheek <camden@ccheek.com>
2024-04-19 14:08:28 -06:00

70 lines
801 B
Plaintext

==================
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)
(path)))
==================
Array
==================
VOLUME ["/test/myvol"]
---
(source_file
(volume_instruction
(json_string_array
(json_string))))
==================
Multiline array
==================
VOLUME ["/test/myvol", \
"/test/myvol2"]
---
(source_file
(volume_instruction
(json_string_array
(json_string)
(line_continuation)
(json_string))))