Skip to content

Commit 773e3df

Browse files
committed
Fix some lookahead problems with ACTUALLY tokens.
1 parent 0070527 commit 773e3df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/parse/token.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ pure fn can_begin_expr(t: token) -> bool {
219219
BINOP(OR) { true } // in lambda syntax
220220
OROR { true } // in lambda syntax
221221
MOD_SEP { true }
222+
ACTUALLY(w_expr(*)) | ACTUALLY(w_ident(*)) | ACTUALLY(w_block(*))
223+
| ACTUALLY(w_path(*)) { true }
222224
_ { false }
223225
}
224226
}

0 commit comments

Comments
 (0)