]> git.lizzy.rs Git - rust.git/commitdiff
Add some missing cases to token::can_begin_expr
authorTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 13 Jul 2011 22:00:23 +0000 (15:00 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Wed, 13 Jul 2011 22:00:23 +0000 (15:00 -0700)
src/comp/syntax/parse/token.rs

index bb594d9e1b96186875a84a745bad9454d9a29150..44dadc1a42f3f7427179b5005f2fbf52ea00e019 100644 (file)
@@ -172,6 +172,7 @@ fn to_str(lexer::reader r, token t) -> str {
     alt (t) {
         case (LPAREN) { true }
         case (LBRACE) { true }
+        case (LBRACKET) { true }
         case (IDENT(_,_)) { true }
         case (UNDERSCORE) { true }
         case (TILDE) { true }
@@ -184,6 +185,9 @@ fn to_str(lexer::reader r, token t) -> str {
         case (LIT_CHAR(_)) { true }
         case (POUND) { true }
         case (AT) { true }
+        case (NOT) { true }
+        case (BINOP(MINUS)) { true }
+        case (BINOP(STAR)) { true }
         case (_) { false }
     }
 }