syntax: fix pretty printing __log stmts

This commit is contained in:
Erick Tryzelaar 2013-03-26 21:42:01 -07:00
parent 2e0b363a7f
commit 7a199d41a9
10 changed files with 17 additions and 30 deletions

View file

@ -1230,7 +1230,7 @@ pub impl Parser {
let lvl = self.parse_expr();
self.expect(&token::COMMA);
let e = self.parse_expr();
ex = expr_log(ast::log_other, lvl, e);
ex = expr_log(lvl, e);
hi = self.span.hi;
self.expect(&token::RPAREN);
} else if self.eat_keyword(&~"return") {