| 511 | if (type == "(") return cont(pushlex(")"), forspec1, expect(")"), poplex); |
| 512 | } |
| 513 | function forspec1(type) { |
| 514 | if (type == "var") return cont(vardef, expect(";"), forspec2); |
| 515 | if (type == ";") return cont(forspec2); |
| 516 | if (type == "variable") return cont(formaybeinof); |
| 517 | return pass(expression, expect(";"), forspec2); |
| 518 | } |
| 519 | function formaybeinof(_type, value) { |
| 520 | if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); } |
| 521 | return cont(maybeoperatorComma, forspec2); |