diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-06-30 21:20:36 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-06-30 21:20:36 -0700 |
| commit | 3155d170ad782c505397f8b1da55b1d271db305f (patch) | |
| tree | 6930b11ae259ae7aefe61919d53a1692b241bf63 /src/libsyntax/parse | |
| parent | 45ccaf04c40a360c9d4153ce7081bae46b1e93cb (diff) | |
| download | rust-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.rs | 2 |
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 } } |
