mirror of
https://github.com/danog/parser.git
synced 2024-11-27 04:14:55 +01:00
lexer: produce capitalized null tokens
This commit is contained in:
parent
b0b6e52ac4
commit
83c65a4251
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user