Fix EOF error in parser

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2024-10-04 11:07:42 -07:00
parent c5f95f4d87
commit 19dd90755d

View File

@@ -457,7 +457,7 @@ impl Parser {
}
fn is_eof(&self) -> bool {
self.lexer.is_eof()
self.current.kind == TokenKind::Eof
}
pub fn was_error(&self) -> bool {