Files
tree-sitter-jhcl/test/corpus/blocks.txt

106 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-06-08 23:06:04 +02:00
==================
basic block
==================
block_1 {
}
---
(config_file
(body
(block
(identifier))))
==================
basic block on one line
==================
block_1 {}
---
(config_file
(body
(block
(identifier))))
==================
block with attribute
==================
block_1 "strlit1" "strlit2" {
attr1 = "val1"
}
---
(config_file
(body
(block
(identifier)
2021-06-14 23:38:05 +02:00
(string_lit)
(string_lit)
2021-06-08 23:06:04 +02:00
(body
(attribute
(identifier)
(expression (expr_term (template_expr (quoted_template)))))))))
2021-06-08 23:06:04 +02:00
==================
nested block
==================
block_1 {
block_2 {
}
}
---
(config_file
(body
(block
(identifier)
(body
(block
(identifier))))))
==================
nested block on one line
==================
block_1 {
block_2 {}
}
---
(config_file
(body
(block
(identifier)
(body
(block
(identifier))))))
2021-06-08 23:18:50 +02:00
==================
nested blocks
==================
block_1 {
block_2 {}
block_3 {}
}
---
(config_file
(body
(block
(identifier)
(body
(block
(identifier))
(block
(identifier))))))