Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Mar 31, 2024
1 parent 5459a25 commit 2325987
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions tree_sitter_v/test/corpus/for_statement.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,38 @@ for v is a {

(source_file
(for_statement
(is_expression
(reference_expression
(identifier))
(plain_type
(type_reference_expression
(identifier))))
(is_clause
(is_expression
(reference_expression
(identifier))
(plain_type
(type_reference_expression
(identifier)))))
(block)))

================================================================================
Simple for mut is statement
================================================================================
for mut v is a {
for mut v is Foo {
}
for mut v !is Bar {
}
--------------------------------------------------------------------------------

(source_file
(for_statement
(mut_is_clause
(is_clause
(mutability_modifiers)
(is_expression
(reference_expression
(identifier))
(plain_type
(type_reference_expression
(identifier)))))
(block))
(for_statement
(is_clause
(mutability_modifiers)
(is_expression
(reference_expression
(identifier))
Expand Down

0 comments on commit 2325987

Please sign in to comment.