pub fn parse_comment(input: &str) -> IResult<&str, &str>
Expand description
Parse an individual comment.
assert_eq!(parse_comment("# foo"), Ok(("", " foo")));
assert_eq!(parse_comment("# foo\ntest"), Ok(("\ntest", " foo")));
assert_eq!(parse_comment("# foo\n#bar"), Ok(("\n#bar", " foo")));
assert!(parse_comment("blah").is_err());
assert!(parse_comment("blah # rest").is_err());