tree-sitter-elixir/test/corpus/expression/block.txt

124 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-09-01 14:59:04 +00:00
=====================================
empty
=====================================
()
---
(source
(block))
=====================================
single expression
=====================================
(1)
---
(source
(block
(integer)))
=====================================
multiple expressions separated by newline
=====================================
(
1
2
)
---
(source
(block
(integer)
(integer)))
=====================================
multiple expressions separated by semicolon
=====================================
(1;2)
---
(source
(block
(integer)
(integer)))
=====================================
multiple expressions separated by mixed separators
=====================================
(
1
;
2
)
---
(source
(block
(integer)
(integer)))
=====================================
leading semicolon
=====================================
(;1;2)
---
(source
(block
(integer)
(integer)))
=====================================
trailing semicolon
=====================================
(1;2;)
---
(source
(block
(integer)
(integer)))
2021-09-25 00:23:37 +00:00
=====================================
stab clauses
=====================================
(x -> x; y -> y
z -> z)
---
(source
(block
(stab_clause
(arguments
(identifier))
(body
(identifier)))
(stab_clause
(arguments
(identifier))
(body
(identifier)))
(stab_clause
(arguments
(identifier))
(body
(identifier)))))