Skip to main content

line_comment

Function line_comment 

Source
pub fn line_comment(input: &str) -> IResult<&str, &str>
Expand description

Match a C++-style comment

use rust_lcm_codegen::parser::line_comment;

assert_eq!(line_comment("// test\nmore"), Ok(("\nmore", " test")));