diff --git a/src/parser.rs b/src/parser.rs index 57ef599..16397ce 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -25,7 +25,7 @@ fn whitespace(input: &str) -> IResult<&str, ()> { } fn empty_line(input: &str) -> IResult<&str, ()> { - map(tuple((opt(comment), tag("\n"))), |_| ())(input) + map(tuple((whitespace, opt(comment), tag("\n"))), |_| ())(input) } pub fn take_until_any>(tags: Vec) -> impl Fn(Input) -> IResult