diff options
Diffstat (limited to 'src/tokenizer')
-rw-r--r-- | src/tokenizer/machine/utils.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tokenizer/machine/utils.rs b/src/tokenizer/machine/utils.rs index ea4d697..9752746 100644 --- a/src/tokenizer/machine/utils.rs +++ b/src/tokenizer/machine/utils.rs @@ -13,6 +13,10 @@ where O: Offset, E: Emitter<O>, { + pub(crate) fn reader_position(&self) -> O { + self.reader.position() + } + /// Emits the given character as a character token. #[inline] pub(super) fn emit_char(&mut self, c: char) { |