Improved for loops

This commit is contained in:
2026-05-22 02:52:22 +02:00
parent 960cc40886
commit b7cfa9fbe6
5 changed files with 37 additions and 12 deletions
+2 -2
View File
@@ -405,11 +405,11 @@ while_stmt = {
}
c_for_stmt = {
"for" ~ "(" ~ statement ~ expr ~ semicolon ~ statement ~ ")" ~ statement
"for" ~ "(" ~ statement ~ statement ~ expr ~ ")" ~ statement
}
for_stmt = {
"for" ~ "(" ~ mutable? ~ pattern ~ "in" ~ expr ~ ")" ~ statement
"for" ~ "(" ~ mutable? ~ pattern ~ ":" ~ expr ~ ")" ~ statement
}
// ------------------------------------------------------