mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
fix(varcon): Swallow abbr annotations
This commit is contained in:
parent
e85562501a
commit
c32240302d
2 changed files with 6 additions and 7 deletions
|
@ -992,7 +992,8 @@ impl Entry {
|
|||
|
||||
fn parse_description(input: &mut &str) -> PResult<Self, ()> {
|
||||
trace("description", move |input: &mut &str| {
|
||||
let (_plural, pos, archaic, note, description) = (
|
||||
let (_abbr, _plural, pos, archaic, note, description) = (
|
||||
winnow::combinator::opt((winnow::ascii::space1, "<abbr>")),
|
||||
winnow::combinator::opt((winnow::ascii::space1, "<pl>")),
|
||||
winnow::combinator::opt((winnow::ascii::space1, delimited('<', Pos::parse_, '>'))),
|
||||
winnow::combinator::opt((winnow::ascii::space1, "(-)")),
|
||||
|
@ -1386,9 +1387,7 @@ Entry {
|
|||
pos: None,
|
||||
archaic: false,
|
||||
note: false,
|
||||
description: Some(
|
||||
"<abbr>",
|
||||
),
|
||||
description: None,
|
||||
comment: None,
|
||||
}
|
||||
|
||||
|
|
|
@ -164634,7 +164634,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<abbr>"),
|
||||
description: None,
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -227280,7 +227280,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<abbr> Matthew"),
|
||||
description: Some("Matthew"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
@ -265098,7 +265098,7 @@ Cluster {
|
|||
},
|
||||
],
|
||||
pos: None, archaic: false, note: false,
|
||||
description: Some("<abbr> Oklahoma"),
|
||||
description: Some("Oklahoma"),
|
||||
comment: None,
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue