summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse/gram.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 5ebfebb..02b3399 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -944,6 +944,8 @@ forstmt : Tfor optexprln loopcond optexprln block
{$$ = mkloopstmt($1->loc, $2, $3, $4, $5);}
| Tfor expr Tin exprln block
{$$ = mkiterstmt($1->loc, $2, $4, $5);}
+ | Tfor expr Tcolon exprln block
+ {$$ = mkiterstmt($1->loc, $2, $4, $5);}
| Tfor decl Tendln loopcond optexprln block {
//Node *init;
if ($2.nn != 1)