(input: &str)
| 20 | } |
| 21 | |
| 22 | pub fn parse_identifier(input: &str) -> IResult<&str, &str> { |
| 23 | recognize(pair( |
| 24 | alt((alpha1, tag("_"))), |
| 25 | many0(alt((alphanumeric1, tag("_")))), |
| 26 | ))(input) |
| 27 | } |
| 28 | |
| 29 | pub fn parse_string_literal(input: &str) -> IResult<&str, &str> { |
| 30 | delimited(char('"'), take_while1(|c| c != '"'), char('"'))(input) |
nothing calls this directly
no outgoing calls
no test coverage detected