Going to switch to using immutable fn instead of FnMut so I can easily make a context tree.

This commit is contained in:
Tom Alexander
2022-11-24 14:30:54 -05:00
parent 806070169a
commit 6f416f6997
3 changed files with 14 additions and 131 deletions

View File

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