Switch the keyword parsers over to using the settings from GlobalSettings.

This commit is contained in:
Tom Alexander
2023-10-15 14:22:01 -04:00
parent 7603b0a1cc
commit e7c3c7aab6
8 changed files with 72 additions and 35 deletions

View File

@@ -93,8 +93,11 @@ where
}
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
pub(crate) fn detect_table<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, ()> {
let (input, _) = many0(affiliated_keyword)(input)?;
pub(crate) fn detect_table<'b, 'g, 'r, 's>(
context: RefContext<'b, 'g, 'r, 's>,
input: OrgSource<'s>,
) -> Res<OrgSource<'s>, ()> {
let (input, _) = many0(parser_with_context!(affiliated_keyword)(context))(input)?;
tuple((start_of_line, space0, tag("|")))(input)?;
Ok((input, ()))
}