Two uses of context tree.
This commit is contained in:
		
							parent
							
								
									fb8a31a88f
								
							
						
					
					
						commit
						396813c70a
					
				| @ -9,6 +9,7 @@ use super::nom_context::ChainBehavior; | ||||
| use super::nom_context::ContextElement; | ||||
| use super::nom_context::ContextTree; | ||||
| use super::nom_context::FailMatcherNode; | ||||
| use super::nom_context::PreviousElementNode; | ||||
| use super::text::bold_end; | ||||
| use super::text::bold_start; | ||||
| use super::text::line_break; | ||||
| @ -77,7 +78,11 @@ where | ||||
|                             } | ||||
| 
 | ||||
|                             ret.push(many_elem); | ||||
|                             // TODO: make new context
 | ||||
|                             current_context = current_context.with_additional_node( | ||||
|                                 ContextElement::PreviousElementNode(PreviousElementNode { | ||||
|                                     element: many_elem.into(), | ||||
|                                 }), | ||||
|                             ); | ||||
|                             i = remaining; | ||||
|                         } | ||||
|                     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander