tree-sitter-dockerfile/corpus/env.txt

97 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-05-09 22:11:30 -04:00
==================
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))
(line_continuation)
2021-05-09 22:11:30 -04:00
(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))))
==================
Space syntax
==================
ENV TEST1 foo
---
(source_file
(env_instruction
(env_pair
name: (unquoted_string)
value: (unquoted_string))))