tree-sitter-dockerfile/corpus/label.txt
2021-05-10 17:25:35 -06:00

93 lines
1.2 KiB
Plaintext

==================
Single key-value
==================
LABEL key="value"
---
(source_file
(label_instruction
(label_pair
key: (unquoted_string)
value: (double_quoted_string))))
==================
Multi key-value
==================
LABEL key.1="value1" key.2="value2"
---
(source_file
(label_instruction
(label_pair
key: (unquoted_string)
value: (double_quoted_string))
(label_pair
key: (unquoted_string)
value: (double_quoted_string))))
==================
Multiline
==================
LABEL key.1="value1" \
key.2="value2"
---
(source_file
(label_instruction
(label_pair
key: (unquoted_string)
value: (double_quoted_string))
(label_pair
key: (unquoted_string)
value: (double_quoted_string))))
==================
Label
==================
LABEL key="value${FOO}"
---
(source_file
(label_instruction
(label_pair
key: (unquoted_string)
value: (double_quoted_string
(expansion)))))
==================
Stopsignal
==================
STOPSIGNAL $FOO
---
(source_file
(stopsignal_instruction
(expansion)))
==================
User
==================
USER foo$FOO:bar$BAR
---
(source_file
(user_instruction
user: (unquoted_string
(expansion))
group: (unquoted_string
(expansion))))