Scanner - Static keyword

This commit is contained in:
Emmanuel BENOîT 2023-01-12 08:15:26 +01:00
parent 0a31442d56
commit 24c39a2c9d

View file

@ -25,6 +25,7 @@ lazy_static! {
keywords.insert("or", TokenType::Or); keywords.insert("or", TokenType::Or);
keywords.insert("print", TokenType::Print); keywords.insert("print", TokenType::Print);
keywords.insert("return", TokenType::Return); keywords.insert("return", TokenType::Return);
keywords.insert("static", TokenType::Static);
keywords.insert("super", TokenType::Super); keywords.insert("super", TokenType::Super);
keywords.insert("this", TokenType::This); keywords.insert("this", TokenType::This);
keywords.insert("true", TokenType::True); keywords.insert("true", TokenType::True);