tree-sitter-dockerfile/corpus/label.txt

93 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-05-09 22:11:30 -04:00
==================
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))))
2021-05-10 17:11:30 -04:00
==================
Label
==================
LABEL key="value${FOO}"
---
(source_file
(label_instruction
(label_pair
key: (unquoted_string)
value: (double_quoted_string
(env_spec)))))
==================
Stopsignal
==================
STOPSIGNAL $FOO
---
(source_file
(stopsignal_instruction
(env_spec)))
==================
User
==================
USER foo$FOO:bar$BAR
---
(source_file
(user_instruction
user: (unquoted_string
(env_spec))
group: (unquoted_string
(env_spec))))