ref: 11f79ed8ff75049f6b1866d70bc032c8d18b1463
parent: 23626785a460ead2c439e2b73209b9b1dc83d552
author: Ori Bernstein <ori@markovcorp.com>
date: Mon Jul 17 09:01:41 EDT 2017
Start migrating code to use `for x : iterable`. `in` is too good of a variable name to waste on a loop iterator specifier.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -944,6 +944,8 @@
{$$ = 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)