mirror of
https://github.com/uutils/coreutils
synced 2024-12-18 17:14:42 +00:00
Fixed some spelling issues
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
parent
df7da4e907
commit
0032f2c4a0
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
// spell-checker:ignore (strings) anychar combinator
|
||||||
|
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
branch::alt,
|
||||||
bytes::complete::tag,
|
bytes::complete::tag,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// spell-checker:ignore (strings) anychar combinator Alnum Punct Xdigit alnum punct xdigit cntrl
|
||||||
|
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
branch::alt,
|
||||||
bytes::complete::tag,
|
bytes::complete::tag,
|
||||||
|
@ -234,7 +236,7 @@ impl Sequence {
|
||||||
alt((
|
alt((
|
||||||
Sequence::error_parse_char_repeat,
|
Sequence::error_parse_char_repeat,
|
||||||
Sequence::error_parse_empty_bracket,
|
Sequence::error_parse_empty_bracket,
|
||||||
Sequence::error_parse_empty_equivalant_char,
|
Sequence::error_parse_empty_equivalent_char,
|
||||||
)),
|
)),
|
||||||
// NOTE: This must be the last one
|
// NOTE: This must be the last one
|
||||||
map(Sequence::parse_backslash_or_char, |s| Ok(Sequence::Char(s))),
|
map(Sequence::parse_backslash_or_char, |s| Ok(Sequence::Char(s))),
|
||||||
|
@ -379,7 +381,7 @@ impl Sequence {
|
||||||
tag("[::]")(input).map(|(l, _)| (l, Err(BadSequence::MissingCharClassName)))
|
tag("[::]")(input).map(|(l, _)| (l, Err(BadSequence::MissingCharClassName)))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn error_parse_empty_equivalant_char(
|
fn error_parse_empty_equivalent_char(
|
||||||
input: &str,
|
input: &str,
|
||||||
) -> IResult<&str, Result<Sequence, BadSequence>> {
|
) -> IResult<&str, Result<Sequence, BadSequence>> {
|
||||||
tag("[==]")(input).map(|(l, _)| (l, Err(BadSequence::MissingEquivalentClassChar)))
|
tag("[==]")(input).map(|(l, _)| (l, Err(BadSequence::MissingEquivalentClassChar)))
|
||||||
|
|
Loading…
Reference in a new issue