aboutsummaryrefslogtreecommitdiff
path: root/src/default_emitter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/default_emitter.rs')
-rw-r--r--src/default_emitter.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/default_emitter.rs b/src/default_emitter.rs
index 5edf848..c9a390a 100644
--- a/src/default_emitter.rs
+++ b/src/default_emitter.rs
@@ -53,6 +53,7 @@ impl<O: Offset> Emitter<O> for DefaultEmitter<O> {
}
fn emit_eof(&mut self) {
+ self.emit_token(Token::EndOfFile);
}
fn emit_char(&mut self, c: char) {