diff options
Diffstat (limited to 'src/parse/tokens.rs')
| -rw-r--r-- | src/parse/tokens.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/parse/tokens.rs b/src/parse/tokens.rs index f82d0ae4..f3ca25d9 100644 --- a/src/parse/tokens.rs +++ b/src/parse/tokens.rs @@ -350,6 +350,7 @@ impl<'s> Tokens<'s> { "and" => Token::And, "or" => Token::Or, "none" => Token::None, + "auto" => Token::Auto, "true" => Token::Bool(true), "false" => Token::Bool(false), id => keyword(id).unwrap_or(Token::Ident(id)), @@ -474,7 +475,6 @@ fn keyword(id: &str) -> Option<Token<'static>> { "for" => Token::For, "in" => Token::In, "while" => Token::While, - "auto" => Token::Auto, "break" => Token::Break, "continue" => Token::Continue, "return" => Token::Return, @@ -759,12 +759,6 @@ mod tests { ("for", For), ("in", In), ("import", Import), - ("while", While), - ("break", Break), - ("continue", Continue), - ("using", Using), - ("auto", Auto), - ("return", Return), ]; for &(s, t) in &list { |
