summaryrefslogtreecommitdiff
path: root/src/parse/tokens.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/tokens.rs')
-rw-r--r--src/parse/tokens.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parse/tokens.rs b/src/parse/tokens.rs
index 9d3cbc9a..f82d0ae4 100644
--- a/src/parse/tokens.rs
+++ b/src/parse/tokens.rs
@@ -474,6 +474,7 @@ 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,
@@ -758,6 +759,12 @@ 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 {