This commit is contained in:
Tom Alexander 2023-10-05 03:59:24 -04:00
parent 18ad80e018
commit 6bd8d9efd7
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 0 additions and 8 deletions

View File

@ -1,5 +1,4 @@
use nom::branch::alt;
use nom::bytes::complete::is_a;
use nom::character::complete::anychar;
use nom::character::complete::line_ending;
use nom::character::complete::none_of;
@ -230,13 +229,6 @@ where
}
}
/// Match at least one space character.
///
/// This is similar to nom's space1 parser except space1 matches both spaces and tabs whereas this only matches spaces.
pub(crate) fn only_space1<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>> {
is_a(" ")(input)
}
/// Match single space or tab.
///
/// In org-mode syntax, spaces and tabs are often (but not always!) interchangeable.