Working soft return

This commit is contained in:
2026-05-21 07:59:00 +02:00
parent 70e6eb6276
commit 7688599504
5 changed files with 25 additions and 5 deletions
+7 -2
View File
@@ -339,7 +339,11 @@ top_level = {
// ======================================================
block = {
"{" ~ (statement | unexpected_statement)* ~ "}"
"{" ~ statement_list ~ expr? ~ "}"
}
statement_list = {
(statement | (!expr ~ unexpected_statement))*
}
statement = _{
@@ -472,7 +476,8 @@ expr_path = {
}
primary = {
basic_stmt
control_flow
| basic_stmt
| literal
| expr_path
| tuple