fn comment(i: &str) -> IResult<&str, ()> {
    delimited(
        multispace0,
        value((), opt(tuple((char('#'), not_line_ending, line_ending)))),
        multispace0,
    )(i)
}
// Matches whitespace, optionally with a comment
Matches whitespace, optionally with a comment
Matches whitespace optionally with a comment
fn comment(i: &str) -> IResult<&str, ()> {
    delimited(
        multispace0,
        value((), opt(tuple((char('#'), not_line_ending, line_ending)))),
        multispace0,
    )(i)
}
fn comment ( i : & str ) -> IResult < & str , ( ) > { delimited ( multispace0 , value ( ( ) , opt ( tuple ( ( char ( '#' ) , not_line_ending , line_ending ) ) ) ) , multispace0 , ) ( i ) }
Matches whitespace, optionally with a comment
Matches whitespace optionally with a comment
i
&str
i
&str