rustc: Pass the correct span to syntax extensions

This commit is contained in:
Brian Anderson 2011-06-04 15:57:13 -04:00
parent af46f3ed0d
commit c18f2e2dac

View file

@ -933,7 +933,8 @@ fn parse_bottom_expr(&parser p) -> @ast::expr {
some(token::COMMA),
pf, p);
hi = es.span.hi;
ex = expand_syntax_ext(p, es.span, pth, es.node,
auto ext_span = rec(lo=lo, hi=hi);
ex = expand_syntax_ext(p, ext_span, pth, es.node,
none[str]);
} else if (eat_word(p, "fail")) {
ex = ast::expr_fail(p.get_ann());