tree-sitter-dockerfile/corpus/volume.txt
Martin Jambon 98fdcad2a0 Add support for single-quoted strings and distinguish JSON strings from
the double-quoted strings that support variable expansion.
2023-06-22 19:44:07 -07: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))))