aboutsummaryrefslogtreecommitdiff
path: root/src/tracing_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/tracing_emitter.rs
parent2e986862920b438b253fd6e6f11d8f4e5d6f4e27 (diff)
feat: add span to Trace::Char
Diffstat (limited to 'src/tracing_emitter.rs')
-rw-r--r--src/tracing_emitter.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tracing_emitter.rs b/src/tracing_emitter.rs
index 819f909..21f40f7 100644
--- a/src/tracing_emitter.rs
+++ b/src/tracing_emitter.rs
@@ -62,8 +62,8 @@ impl Emitter<usize> for TracingEmitter {
self.errors.push_back((error, span));
}
- fn emit_char(&mut self, c: char) {
- self.emit_token(Token::Char(c), Trace::Char);
+ fn emit_char(&mut self, c: char, span: Range<usize>) {
+ self.emit_token(Token::Char(c), Trace::Char(span));
}
fn emit_eof(&mut self, offset: usize) {