aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus/block_variables.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tree-sitter/test/corpus/block_variables.txt')
-rw-r--r--tools/tree-sitter/test/corpus/block_variables.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/tree-sitter/test/corpus/block_variables.txt b/tools/tree-sitter/test/corpus/block_variables.txt
new file mode 100644
index 0000000..8c6698c
--- /dev/null
+++ b/tools/tree-sitter/test/corpus/block_variables.txt
@@ -0,0 +1,25 @@
+==================
+block_variables
+==================
+
+program()
+
+begin
+ block b
+ var
+ x: Int
+ end
+end.
+
+---
+
+(source_file
+ (program_declaration
+ (block_statement
+ (identifier)
+ (block
+ (var_section
+ (variable_declaration
+ (identifier_definition
+ (identifier))
+ (identifier)))))))