mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
fix(varcon): Swallow plural annotations
This commit is contained in:
parent
5e00c161a6
commit
3b2dd279b7
2 changed files with 19 additions and 20 deletions
|
@ -992,7 +992,8 @@ impl Entry {
|
|||
|
||||
fn parse_description(input: &mut &str) -> PResult<Self, ()> {
|
||||
trace("description", move |input: &mut &str| {
|
||||
let (pos, archaic, note, description) = (
|
||||
let (_plural, pos, archaic, note, description) = (
|
||||
winnow::combinator::opt((winnow::ascii::space1, "<pl>")),
|
||||
winnow::combinator::opt((winnow::ascii::space1, delimited('<', Pos::parse_, '>'))),
|
||||
winnow::combinator::opt((winnow::ascii::space1, "(-)")),
|
||||
winnow::combinator::opt((winnow::ascii::space1, "--")),
|
||||
|
@ -1341,9 +1342,7 @@ Entry {
|
|||
pos: None,
|
||||
archaic: false,
|
||||
note: false,
|
||||
description: Some(
|
||||
"<pl>",
|
||||
),
|
||||
description: None,
|
||||
comment: None,
|
||||
}
|
||||
|
||||
|
|
|
@ -12342,7 +12342,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [analysis]"),
|
||||
description: Some("[analysis]"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -49134,7 +49134,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [catalysis]"),
|
||||
description: Some("[catalysis]"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -55294,7 +55294,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> :2"),
|
||||
description: Some(":2"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -99099,7 +99099,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [dialysis]"),
|
||||
description: Some("[dialysis]"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -107825,7 +107825,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl>"),
|
||||
description: None,
|
||||
comment: None,
|
||||
},
|
||||
Entry {
|
||||
|
@ -183976,7 +183976,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [hydrolysis]"),
|
||||
description: Some("[hydrolysis]"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -184239,7 +184239,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl>"),
|
||||
description: None,
|
||||
comment: None,
|
||||
},
|
||||
Entry {
|
||||
|
@ -195572,7 +195572,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl>"),
|
||||
description: None,
|
||||
comment: None,
|
||||
},
|
||||
Entry {
|
||||
|
@ -204163,7 +204163,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl>"),
|
||||
description: None,
|
||||
comment: None,
|
||||
},
|
||||
Entry {
|
||||
|
@ -283206,7 +283206,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [paralysis]"),
|
||||
description: Some("[paralysis]"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -322811,7 +322811,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [psychoanalysis]"),
|
||||
description: Some("[psychoanalysis]"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -327022,7 +327022,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl>"),
|
||||
description: None,
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -330649,7 +330649,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [reanalysis]"),
|
||||
description: Some("[reanalysis]"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -397881,7 +397881,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> [topi] antelope"),
|
||||
description: Some("[topi] antelope"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -447581,7 +447581,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl>"),
|
||||
description: None,
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -449137,7 +449137,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<pl> :1"),
|
||||
description: Some(":1"),
|
||||
comment: None,
|
||||
},
|
||||
Entry {
|
||||
|
|
Loading…
Reference in a new issue