![Martin Jambon](/assets/img/avatar_default.png)
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
74 lines
1.2 KiB
Plaintext
74 lines
1.2 KiB
Plaintext
==================
|
|
Integer
|
|
==================
|
|
|
|
STOPSIGNAL 9
|
|
|
|
---
|
|
|
|
(source_file
|
|
(stopsignal_instruction))
|
|
|
|
==================
|
|
Signal name
|
|
==================
|
|
|
|
STOPSIGNAL SIGKILL
|
|
|
|
---
|
|
|
|
(source_file
|
|
(stopsignal_instruction))
|
|
|
|
=========================================================
|
|
Signal value with expansions
|
|
=========================================================
|
|
|
|
STOPSIGNAL A$BC${DE}F
|
|
|
|
---
|
|
|
|
(source_file
|
|
(stopsignal_instruction
|
|
(expansion
|
|
(variable))
|
|
(expansion
|
|
(variable))))
|
|
|
|
=========================================================
|
|
No space in signal value
|
|
=========================================================
|
|
|
|
STOPSIGNAL A B
|
|
|
|
---
|
|
|
|
(source_file
|
|
(ERROR
|
|
(stopsignal_instruction)))
|
|
|
|
=========================================================
|
|
No space in signal value before expansion
|
|
=========================================================
|
|
|
|
STOPSIGNAL A $B
|
|
|
|
---
|
|
|
|
(source_file
|
|
(stopsignal_instruction
|
|
(ERROR)
|
|
(expansion
|
|
(variable))))
|
|
|
|
=========================================================
|
|
No space in signal value within expansion
|
|
=========================================================
|
|
|
|
STOPSIGNAL A$ B
|
|
|
|
---
|
|
|
|
(source_file
|
|
(ERROR))
|