chore: add true, false, and null as reserved keywords

Signed-off-by: azjezz <azjezz@protonmail.com>
This commit is contained in:
azjezz 2022-12-08 18:59:35 +01:00
parent b72751d3c7
commit 2db9d4641b
No known key found for this signature in database
GPG Key ID: B00E0A46B3F1C157

View File

@ -103,6 +103,9 @@ pub fn is_reserved_ident(kind: &TokenKind) -> bool {
| TokenKind::Parent | TokenKind::Parent
| TokenKind::Self_ | TokenKind::Self_
| TokenKind::Abstract | TokenKind::Abstract
| TokenKind::True
| TokenKind::False
| TokenKind::Null
| TokenKind::Final | TokenKind::Final
| TokenKind::For | TokenKind::For
| TokenKind::Private | TokenKind::Private