]> git.lizzy.rs Git - rust.git/commit
Update Token::can_begin_expr() to make it consistent with the grammar:
authorDaniel Grunwald <daniel@danielgrunwald.de>
Sat, 10 Jan 2015 23:14:03 +0000 (00:14 +0100)
committerDaniel Grunwald <daniel@danielgrunwald.de>
Sat, 10 Jan 2015 23:14:03 +0000 (00:14 +0100)
commitd0863adf24b316d8ecaca5a1b8866ee5db902313
treeef28bce96abf5308f57ca5ad8eb45723af71a943
parent099b411e080d302ec0dc5f3aebe53d76c50acfc7
Update Token::can_begin_expr() to make it consistent with the grammar:
 * add Token::AndAnd (double borrow)
 * add Token::DotDot (range notation)
 * remove Token::Pound and Token::At

Fixes a syntax error when parsing "fn f() -> RangeTo<i32> { return ..1; }".

Also, remove "fn_expr_lookahead".
It's from the fn~ days and seems to no longer be necessary.
src/libsyntax/parse/parser.rs
src/libsyntax/parse/token.rs