Simplify comment parsing
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
8f48183e30
commit
4a1dc94a41
1 changed files with 1 additions and 3 deletions
|
@ -48,9 +48,7 @@ fn allspaces(i: &str) -> IResult<&str, &str> {
|
|||
}
|
||||
|
||||
fn comment(i: &str) -> IResult<&str, &str> {
|
||||
let (i, _) = tag("#")(i)?;
|
||||
let (i, _) = take_until("\n")(i)?;
|
||||
let (i, _) = tag("\n")(i)?;
|
||||
let (i, _) = delimited(tag("#"), take_until("\n"), tag("\n"))(i)?;
|
||||
Ok((i, ""))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue