tree-sitter-dockerfile/test/corpus/user.txt
tvrinssen 1bf9daef46
Support heredocs (#45)
This adds support for heredocs in Dockerfiles. This required adding an external scanner to store the required state.

Co-authored-by: Camden Cheek <camden@ccheek.com>
2024-04-19 14:08:28 -06:00

64 lines
875 B
Plaintext

==================
No group
==================
USER foo
USER FooBar
USER Foo-Bar
---
(source_file
(user_instruction
user: (unquoted_string))
(user_instruction
user: (unquoted_string))
(user_instruction
user: (unquoted_string)))
==================
With group
==================
USER foo:bar
USER foo:Bar
USER foo:Bar-Bar
---
(source_file
(user_instruction
user: (unquoted_string)
group: (unquoted_string))
(user_instruction
user: (unquoted_string)
group: (unquoted_string))
(user_instruction
user: (unquoted_string)
group: (unquoted_string)))
==================
Numerical
==================
USER 1004:1004
---
(source_file
(user_instruction
user: (unquoted_string)
group: (unquoted_string)))
===========================
No spaces in user:group
===========================
USER a: b
---
(source_file
(ERROR
(unquoted_string)))