Consume trailing whitespace for macro.
This commit is contained in:
		
							parent
							
								
									f426e32798
								
							
						
					
					
						commit
						80b55fdd45
					
				| @ -1,5 +1,6 @@ | ||||
| use nom::bytes::complete::tag; | ||||
| use nom::character::complete::anychar; | ||||
| use nom::character::complete::space0; | ||||
| use nom::combinator::not; | ||||
| use nom::combinator::opt; | ||||
| use nom::combinator::peek; | ||||
| @ -24,6 +25,7 @@ pub fn org_macro<'r, 's>( | ||||
|     let (remaining, macro_name) = org_macro_name(context, remaining)?; | ||||
|     let (remaining, macro_args) = opt(parser_with_context!(org_macro_args)(context))(remaining)?; | ||||
|     let (remaining, _) = tag("}}}")(remaining)?; | ||||
|     let (remaining, _trailing_whitespace) = space0(remaining)?; | ||||
| 
 | ||||
|     let source = get_consumed(input, remaining); | ||||
|     Ok(( | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander