From 661ccfb30cf7feddc94c533d23cc2d69a69f5c50 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 30 Oct 2022 05:09:01 -0400 Subject: [PATCH] Not general enough error. --- src/parser/text_element_parser.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index ab10cad8..cfc6d59f 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -42,7 +42,12 @@ fn flat_text_element<'s, 'r>( ))(i) } -fn flat_bold<'s, 'r>(i: &'s str, context: &'r TestContext) -> Res<&'s str, TextElement<'s>> { +fn flat_bold<'s, 'r>( + i: &'s str, + context: &'r TestContext, +) -> Res<&'s str, TextElement<'s>> { + 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!() }