aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-16 07:46:50 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 13:41:55 +0200
commita48ddc21a26f394e077e7bd80ef96b2c281e7730 (patch)
treeb49d5c01b0fffeab2f66c00ec33bd11a5962ee25 /src/tokenizer.rs
parent0d96df198b1223e942abfefb7ea51ccab99638cc (diff)
feat!: add all-inclusive spans to tags
Also more performant since we no longer have to update the name span on every Emitter::push_tag_name call.
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs
index e8a8908..1b80ec3 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -160,7 +160,7 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
#[inline]
pub(crate) fn emit_current_tag(&mut self) {
- self.emitter.emit_current_tag();
+ self.emitter.emit_current_tag(self.reader.position() - 1);
if self.is_start_tag {
std::mem::swap(&mut self.last_start_tag_name, &mut self.current_tag_name);
}