For some reason it does not work with FnMut for additional fail matchers.

This commit is contained in:
Tom Alexander
2022-10-30 05:43:26 -04:00
parent 661ccfb30c
commit d1460fed95
2 changed files with 25 additions and 8 deletions

View File

@@ -46,8 +46,8 @@ fn flat_bold<'s, 'r>(
i: &'s str,
context: &'r TestContext<ContextData>,
) -> Res<&'s str, TextElement<'s>> {
let new_context =
context.with_additional_fail_matcher(Rc::new(RefCell::new(recognize(bold_end))));
let fail_matcher = recognize(bold_end);
let new_context = context.with_additional_fail_matcher(Rc::new(RefCell::new(paragraph_end)));
// let new_context = context.without_bold(Rc::new(RefCell::new(recognize(bold_end))));
todo!()
}