Fix EOF error in parser
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user