lexer: produce capitalized null tokens

This commit is contained in:
Ryan Chandler 2022-07-21 15:07:55 +01:00
parent b0b6e52ac4
commit 83c65a4251
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -374,7 +374,7 @@ impl Lexer {
#[allow(dead_code)]
fn identifier_to_keyword(ident: &str) -> Option<TokenKind> {
Some(match ident {
"null" => TokenKind::Null,
"null" | "NULL" => TokenKind::Null,
"abstract" => TokenKind::Abstract,
"class" => TokenKind::Class,
"declare" => TokenKind::Declare,