mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-28 20:11:05 -05:00
commit
8dec26e3c6
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ impl Entry {
|
||||||
trace("entry", move |input: &mut &str| {
|
trace("entry", move |input: &mut &str| {
|
||||||
let var_sep = (winnow::ascii::space0, '/', winnow::ascii::space0);
|
let var_sep = (winnow::ascii::space0, '/', winnow::ascii::space0);
|
||||||
let variants =
|
let variants =
|
||||||
winnow::combinator::separated1(Variant::parse_, var_sep).parse_next(input)?;
|
winnow::combinator::separated(1.., Variant::parse_, var_sep).parse_next(input)?;
|
||||||
|
|
||||||
let desc_sep = (winnow::ascii::space0, '|');
|
let desc_sep = (winnow::ascii::space0, '|');
|
||||||
let description =
|
let description =
|
||||||
|
@ -330,7 +330,7 @@ impl Variant {
|
||||||
|
|
||||||
fn parse_(input: &mut &str) -> PResult<Self, ()> {
|
fn parse_(input: &mut &str) -> PResult<Self, ()> {
|
||||||
trace("variant", move |input: &mut &str| {
|
trace("variant", move |input: &mut &str| {
|
||||||
let types = winnow::combinator::separated1(Type::parse_, winnow::ascii::space1);
|
let types = winnow::combinator::separated(1.., Type::parse_, winnow::ascii::space1);
|
||||||
let sep = (":", winnow::ascii::space0);
|
let sep = (":", winnow::ascii::space0);
|
||||||
let (types, word) =
|
let (types, word) =
|
||||||
winnow::combinator::separated_pair(types, sep, word).parse_next(input)?;
|
winnow::combinator::separated_pair(types, sep, word).parse_next(input)?;
|
||||||
|
|
Loading…
Reference in a new issue