diff options
| author | Graydon Hoare <[email protected]> | 2011-02-15 12:20:13 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-02-15 12:20:13 -0800 |
| commit | 2bba49a9feed613c2f018d5aa751df3c7a49a3d6 (patch) | |
| tree | 495262f6ff2520628ae0f3947d7b6f92d7ba7256 /src/comp/front/parser.rs | |
| parent | Add basic front-end support for 'for each' loops. (diff) | |
| download | rust-2bba49a9feed613c2f018d5aa751df3c7a49a3d6.tar.xz rust-2bba49a9feed613c2f018d5aa751df3c7a49a3d6.zip | |
Fix missing path in expr_ext.
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index ddadc789..085255a4 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -589,13 +589,14 @@ impure fn parse_bottom_expr(parser p) -> @ast.expr { case (token.POUND) { p.bump(); + auto pth = parse_path(p, GREEDY); auto pf = parse_expr; auto es = parse_seq[@ast.expr](token.LPAREN, token.RPAREN, some(token.COMMA), pf, p); hi = es.span; - ex = ast.expr_ext(es.node, none[@ast.expr], ast.ann_none); + ex = ast.expr_ext(pth, es.node, none[@ast.expr], ast.ann_none); } case (token.FAIL) { |