| 599 | if (type == "(") return cont(pushlex(")"), forspec1, expect(")"), poplex); |
| 600 | } |
| 601 | function forspec1(type) { |
| 602 | if (type == "var") return cont(vardef, expect(";"), forspec2); |
| 603 | if (type == ";") return cont(forspec2); |
| 604 | if (type == "variable") return cont(formaybeinof); |
| 605 | return pass(expression, expect(";"), forspec2); |
| 606 | } |
| 607 | function formaybeinof(_type, value) { |
| 608 | if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); } |
| 609 | return cont(maybeoperatorComma, forspec2); |