From 3155d170ad782c505397f8b1da55b1d271db305f Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 30 Jun 2012 21:20:36 -0700 Subject: syntax: Fix lambda parsing following 'ret' --- src/libsyntax/parse/token.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 706ebb8e4ca..9ab2fc5014c 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -198,6 +198,8 @@ pure fn can_begin_expr(t: token) -> bool { BINOP(MINUS) { true } BINOP(STAR) { true } BINOP(AND) { true } + BINOP(OR) { true } // in lambda syntax + OROR { true } // in lambda syntax MOD_SEP { true } _ { false } } -- cgit 1.4.1-3-g733a5