Remove the log keyword (by renaming it to __log)

We can't quite remove logging from the language, but this hides the
keyword.
This commit is contained in:
Brian Anderson
2013-03-08 18:32:03 -08:00
parent cb37d09f50
commit 9c7e16e48d
4 changed files with 10 additions and 24 deletions

View File

@@ -1184,7 +1184,7 @@ pub impl Parser {
}
}
hi = self.span.hi;
} else if self.eat_keyword(&~"log") {
} else if self.eat_keyword(&~"__log") {
self.expect(&token::LPAREN);
let lvl = self.parse_expr();
self.expect(&token::COMMA);