Skip to content

Commit

Permalink
feat: add method to get current parsing index (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje committed Nov 30, 2022
1 parent 6f48fc9 commit 7101e00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parser.rs
Expand Up @@ -5930,6 +5930,11 @@ impl<'a> Parser<'a> {
}
Ok(sequence_options)
}

/// The index of the first unprocessed token.
pub fn index(&self) -> usize {
self.index
}
}

impl Word {
Expand Down

0 comments on commit 7101e00

Please sign in to comment.