Make the parser support as many identifiers on the LHS in for in loops to improve error messages

This commit is contained in:
gingerBill
2021-03-24 12:11:00 +00:00
parent 295c1550a8
commit 0e3ecc350a
5 changed files with 45 additions and 53 deletions
+1 -2
View File
@@ -407,8 +407,7 @@ AST_KIND(_ComplexStmtBegin, "", bool) \
AST_KIND(RangeStmt, "range statement", struct { \
Token token; \
Ast *label; \
Ast *val0; \
Ast *val1; \
Slice<Ast *> vals; \
Token in_token; \
Ast *expr; \
Ast *body; \