about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-06-30 21:20:36 -0700
committerBrian Anderson <banderson@mozilla.com>2012-06-30 21:20:36 -0700
commit3155d170ad782c505397f8b1da55b1d271db305f (patch)
tree6930b11ae259ae7aefe61919d53a1692b241bf63 /src/libsyntax/parse
parent45ccaf04c40a360c9d4153ce7081bae46b1e93cb (diff)
downloadrust-3155d170ad782c505397f8b1da55b1d271db305f.tar.gz
rust-3155d170ad782c505397f8b1da55b1d271db305f.zip
syntax: Fix lambda parsing following 'ret'
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs2
1 files changed, 2 insertions, 0 deletions
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 }
     }