From e681f8fdff2e07e0765227caabddf5c08434f088 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 31 Mar 2023 13:22:30 -0400 Subject: [PATCH] Remove the exit matcher block. I'm not sure this is a problem, but while I'm debugging I want this removed to be safe. --- src/parser/parser_context.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/parser/parser_context.rs b/src/parser/parser_context.rs index 445884ac..8618e0ee 100644 --- a/src/parser/parser_context.rs +++ b/src/parser/parser_context.rs @@ -66,10 +66,10 @@ impl<'r, 's> ContextTree<'r, 's> { return at_end_of_file; } - let blocked_context = - self.with_additional_node(ContextElement::ExitMatcherNode(ExitMatcherNode { - exit_matcher: ChainBehavior::IgnoreParent(Some(&always_fail)), - })); + // let blocked_context = + // self.with_additional_node(ContextElement::ExitMatcherNode(ExitMatcherNode { + // exit_matcher: ChainBehavior::IgnoreParent(Some(&always_fail)), + // })); for current_node in self.iter() { let context_element = current_node.get_data(); @@ -77,14 +77,14 @@ impl<'r, 's> ContextTree<'r, 's> { ContextElement::ExitMatcherNode(exit_matcher) => { match exit_matcher.exit_matcher { ChainBehavior::AndParent(Some(matcher)) => { - let local_result = matcher(&blocked_context, i); + let local_result = matcher(self, i); if local_result.is_ok() { return local_result; } } ChainBehavior::AndParent(None) => {} ChainBehavior::IgnoreParent(Some(matcher)) => { - let local_result = matcher(&blocked_context, i); + let local_result = matcher(self, i); if local_result.is_ok() { return local_result; }