Properly parse 'auto' for loop variable types

This commit is contained in:
Marijn Haverbeke 2011-07-26 14:53:01 +02:00
parent f8968d1e71
commit c0976ad70b
2 changed files with 8 additions and 1 deletions

View file

@ -1354,7 +1354,7 @@ fn parse_else_expr(&parser p) -> @ast::expr {
}
fn parse_head_local(&parser p) -> @ast::local {
if (is_word(p, "auto")) {
if (eat_word(p, "auto")) {
ret parse_auto_local(p);
} else {
ret parse_typed_local(p);