Scanner - break + continue keywords
This commit is contained in:
parent
f8f9d376fb
commit
a403799d22
1 changed files with 18 additions and 16 deletions
|
@ -13,7 +13,9 @@ lazy_static! {
|
|||
static ref KEYWORDS: HashMap<&'static str, TokenType> = {
|
||||
let mut keywords = HashMap::new();
|
||||
keywords.insert("and", TokenType::And);
|
||||
keywords.insert("break", TokenType::Break);
|
||||
keywords.insert("class", TokenType::Class);
|
||||
keywords.insert("continue", TokenType::Continue);
|
||||
keywords.insert("else", TokenType::Else);
|
||||
keywords.insert("false", TokenType::False);
|
||||
keywords.insert("for", TokenType::For);
|
||||
|
|
Loading…
Reference in a new issue