From e70c8584d562c86fdca9c98895fb981683d18859 Mon Sep 17 00:00:00 2001 From: Carol Nichols Date: Sat, 16 May 2015 14:31:52 -0400 Subject: [PATCH] Revert "Panic if the grammar verifier sees a token it doesn't recognize" This reverts commit 9c7d5ae57c27ebfc019c2c23283bb905d8c3b74f. This was wrong... the `continue` was to ignore the latter half of the tokens file. Another mechanism will have to be used to keep the model grammar's tokens in sync with the actual grammar's tokens :-/ --- src/grammar/verify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grammar/verify.rs b/src/grammar/verify.rs index b9ff39547f3cf..0d8fb312d1131 100644 --- a/src/grammar/verify.rs +++ b/src/grammar/verify.rs @@ -111,7 +111,7 @@ fn parse_token_list(file: &str) -> HashMap { "LIT_BINARY_RAW" => token::Literal(token::BinaryRaw(Name(0), 0), None), "QUESTION" => token::Question, "SHEBANG" => token::Shebang(Name(0)), - _ => panic!("Bad token str `{}`", val), + _ => continue, }; res.insert(num.to_string(), tok);