Fixing more errors.
This commit is contained in:
@@ -46,7 +46,7 @@ pub fn latex_environment<'r, 's>(
|
||||
});
|
||||
let parser_context = context.with_additional_node(&parser_context);
|
||||
|
||||
let (remaining, _contents) = contents(&latex_environment_end_specialized, context, remaining)?;
|
||||
let (remaining, _contents) = contents(&latex_environment_end_specialized)(context, remaining)?;
|
||||
let (remaining, _end) = latex_environment_end_specialized(&parser_context, remaining)?;
|
||||
|
||||
let source = get_consumed(input, remaining);
|
||||
@@ -63,16 +63,15 @@ fn name<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
take_while1(|c: char| c.is_alphanumeric() || c == '*')(input)
|
||||
}
|
||||
|
||||
fn contents<F: ContextMatcher>(end_matcher: F) -> impl ContextMatcher {
|
||||
move |context, input| _contents(&end_matcher, context, input)
|
||||
}
|
||||
|
||||
#[cfg_attr(
|
||||
feature = "tracing",
|
||||
tracing::instrument(ret, level = "debug", skip(end_matcher))
|
||||
)]
|
||||
pub fn contents<
|
||||
'b,
|
||||
'r,
|
||||
's,
|
||||
F: Fn(RefContext<'b, 'r, 's>, OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>>,
|
||||
>(
|
||||
fn _contents<'b, 'r, 's, F: ContextMatcher>(
|
||||
end_matcher: F,
|
||||
context: RefContext<'b, 'r, 's>,
|
||||
input: OrgSource<'s>,
|
||||
@@ -81,7 +80,7 @@ pub fn contents<
|
||||
anychar,
|
||||
peek(alt((
|
||||
parser_with_context!(exit_matcher_parser)(context),
|
||||
parser_with_context!(end_matcher)(context),
|
||||
parser_with_context!(&end_matcher)(context),
|
||||
))),
|
||||
))(input)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user