diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-29 12:13:53 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | c38810192fbf11007f53bcccd48072e099a4191a (patch) | |
tree | 796f86fa5383fdf1d84823ac5d746603fa7c2347 /src/tokenizer.rs | |
parent | d45e09a3157c71e3c95bf618a2b181f322c87a5d (diff) |
break!: make Emitter::emit_error take span
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 5b11db0..db4fda6 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -178,7 +178,10 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> { /// Just a helper method for the machine. #[inline] pub(crate) fn emit_error(&mut self, error: Error) { - self.emitter.emit_error(error, self.reader.position() - 1); + self.emitter.emit_error( + error, + self.reader.position() - 1..self.reader.position() - 1, + ); } /// Assuming the _current token_ is an end tag, return true if all of these hold. Return false otherwise. |