aboutsummaryrefslogtreecommitdiff
path: root/src/emitter.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-15 09:40:55 +0200
committerMartin Fischer <martin@push-f.com>2023-09-28 10:36:08 +0200
commitd46de6ab592e57a31fef13cfc015c4ce818e8f47 (patch)
tree814654b579f0a1754193a40786f09a711adc021a /src/emitter.rs
parent2e986862920b438b253fd6e6f11d8f4e5d6f4e27 (diff)
feat: add span to Trace::Char
Diffstat (limited to 'src/emitter.rs')
-rw-r--r--src/emitter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index 264d2f1..5d2dd4d 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -28,7 +28,7 @@ pub trait Emitter<O> {
fn report_error(&mut self, error: Error, span: Range<O>);
/// Emits the given character as a character token.
- fn emit_char(&mut self, c: char);
+ fn emit_char(&mut self, char: char, span: Range<O>);
/// The state machine has reached the end of the file.
fn emit_eof(&mut self, offset: O);