1
Fork 0

Add some missing cases to token::can_begin_expr

This commit is contained in:
Tim Chevalier 2011-07-13 15:00:23 -07:00
parent d39f84d8ec
commit 0c913e63d9

View file

@ -172,6 +172,7 @@ pred can_begin_expr(token t) -> bool {
alt (t) {
case (LPAREN) { true }
case (LBRACE) { true }
case (LBRACKET) { true }
case (IDENT(_,_)) { true }
case (UNDERSCORE) { true }
case (TILDE) { true }
@ -184,6 +185,9 @@ pred can_begin_expr(token t) -> bool {
case (LIT_CHAR(_)) { true }
case (POUND) { true }
case (AT) { true }
case (NOT) { true }
case (BINOP(MINUS)) { true }
case (BINOP(STAR)) { true }
case (_) { false }
}
}