d8defd6796
This is more correct and more robust when rules are reordered, see https://github.com/camdencheek/tree-sitter-dockerfile/issues/18 and https://github.com/camdencheek/tree-sitter-dockerfile/issues/19
50 lines
582 B
Plaintext
50 lines
582 B
Plaintext
==================
|
|
No group
|
|
==================
|
|
|
|
USER foo
|
|
|
|
---
|
|
|
|
(source_file
|
|
(user_instruction
|
|
user: (unquoted_string)))
|
|
|
|
==================
|
|
With group
|
|
==================
|
|
|
|
USER foo:bar
|
|
|
|
---
|
|
|
|
(source_file
|
|
(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)))
|