fn string_literal<'a, E>(input: &'a str) -> IResult<&'a str, &'a str, E>
where
    E: NomParseError<&'a str>,
{
    // TODO(fxbug.dev/86963): this doesn't handle escape sequences.
    // Consider accepting escaped `"`: `\"` too.
    let (rest, value) = recognize(delimited(char('"'), many0(is_not("\"")), char('"')))(input)?;
    Ok((rest, &value[1..value.len() - 1]))
}
/// Parses the input as a string literal wrapped in double quotes. Returns the value
/// inside the quotes.
Parses the input as a string literal wrapped in double quotes. Returns the value
inside the quotes.
Parses the input as a string literal wrapped in double quotes . Returns the value inside the quotes .
fn string_literal<'a, E>(input: &'a str) -> IResult<&'a str, &'a str, E>
where
    E: NomParseError<&'a str>,
{
    // TODO(fxbug.dev/86963): this doesn't handle escape sequences.
    // Consider accepting escaped `"`: `\"` too.
    let (rest, value) = recognize(delimited(char('"'), many0(is_not("\"")), char('"')))(input)?;
    Ok((rest, &value[1..value.len() - 1]))
}
fn string_literal < ' a , E > ( input : & ' a str ) -> IResult < & ' a str , & ' a str , E > where E : NomParseError < & ' a str > , { // TODO(fxbug.dev/86963): this doesn't handle escape sequences. // Consider accepting escaped `"`: `\"` too. let ( rest , value ) = recognize ( delimited ( char ( '"' ) , many0 ( is_not ( " \" " ) ) , char ( '"' ) ) ) ( input ) ? ; Ok ( ( rest , & value [ 1 .. value . len ( ) - 1 ] ) ) }
Parses the input as a string literal wrapped in double quotes.
Parses the input as a string literal wrapped in double quotes .
input
&'a str
input
&'a str