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.
This commit is contained in:
		
							parent
							
								
									2b0e88dc01
								
							
						
					
					
						commit
						e681f8fdff
					
				| @ -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; | ||||
|                             } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander