tree-sitter-elixir/test/corpus/term/list.txt

89 lines
1012 B
Plaintext
Raw Normal View History

2021-09-01 14:59:04 +00:00
=====================================
simple literal
=====================================
[]
2021-09-25 00:23:37 +00:00
[a]
[A]
2021-09-01 14:59:04 +00:00
[1]
[1, 2]
[1,2]
[ 1 , 2 ]
---
(source
(list)
2021-09-25 00:23:37 +00:00
(list
(identifier))
(list
(alias))
2021-09-01 14:59:04 +00:00
(list
(integer))
(list
(integer)
(integer))
(list
(integer)
(integer))
(list
(integer)
(integer)))
=====================================
nested
=====================================
[[1], 1]
---
(source
(list
(list
(integer))
(integer)))
=====================================
trailing separator
=====================================
[1,]
[1,2,]
---
(source
(list
(integer))
(list
(integer)
(integer)))
=====================================
[error] missing element
=====================================
[, 1]
---
(source
(list
2021-09-25 00:23:37 +00:00
(ERROR)
(integer)))
2021-09-01 14:59:04 +00:00
=====================================
[error] missing separator
=====================================
[1 2]
---
(source
(list
(integer)
(ERROR
(integer))))