Remove unnecessary exit matcher check.

This commit is contained in:
Tom Alexander 2023-03-27 16:53:38 -04:00
parent a77d2655bd
commit cddefdb963
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -104,7 +104,6 @@ fn section<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, Sec
exit_matcher: ChainBehavior::AndParent(Some(&section_end)), exit_matcher: ChainBehavior::AndParent(Some(&section_end)),
})) }))
.with_additional_node(ContextElement::Context("section")); .with_additional_node(ContextElement::Context("section"));
not(|i| parser_context.check_exit_matcher(i))(input)?;
let element_matcher = parser_with_context!(element)(&parser_context); let element_matcher = parser_with_context!(element)(&parser_context);
let exit_matcher = parser_with_context!(exit_matcher_parser)(&parser_context); let exit_matcher = parser_with_context!(exit_matcher_parser)(&parser_context);
let (remaining, (children, _exit_contents)) = verify( let (remaining, (children, _exit_contents)) = verify(