tree-sitter-dockerfile/corpus/env.txt
2021-05-09 20:11:30 -06:00

82 lines
1.2 KiB
Plaintext

==================
Quoted value
==================
ENV TEST="okay"
---
(source_file
(env_instruction
(env_pair
name: (unquoted_string)
value: (double_quoted_string))))
==================
Unquoted value
==================
ENV TEST_2=value\ 2
---
(source_file
(env_instruction
(env_pair
name: (unquoted_string)
value: (unquoted_string))))
==================
Multiple
==================
ENV TEST="foo" TEST_2=foo\ bar
---
(source_file
(env_instruction
(env_pair
name: (unquoted_string)
value: (double_quoted_string))
(env_pair
name: (unquoted_string)
value: (unquoted_string))))
==================
Multiline
==================
ENV TEST1="foo" \
TEST2=bar
---
(source_file
(env_instruction
(env_pair
name: (unquoted_string)
value: (double_quoted_string))
(env_pair
name: (unquoted_string)
value: (unquoted_string))))
==================
Multiple instructions
==================
ENV TEST1="foo"
ENV TEST2="bar"
---
(source_file
(env_instruction
(env_pair
name: (unquoted_string)
value: (double_quoted_string)))
(env_instruction
(env_pair
name: (unquoted_string)
value: (double_quoted_string))))