Skip to content

Commit

Permalink
refactor: Migrate from Parser to ModalParser
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 30, 2025
1 parent 7830eb8 commit 4c22f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/typos/src/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,10 @@ mod parser {
trace("printf", ('%', take_while(1.., is_xid_continue)).take()).parse_next(input)
}

fn take_many0<I, E, F>(mut f: F) -> impl Parser<I, <I as Stream>::Slice, E>
fn take_many0<I, E, F>(mut f: F) -> impl ModalParser<I, <I as Stream>::Slice, E>
where
I: Stream,
F: Parser<I, <I as Stream>::Slice, E>,
F: ModalParser<I, <I as Stream>::Slice, E>,
E: ParserError<I>,
{
move |i: &mut I| repeat(0.., f.by_ref()).map(|()| ()).take().parse_next(i)
Expand Down

0 comments on commit 4c22f19

Please # to comment.