fn do_parse_selector<'a, E>(
    allow_inline_comment: bool,
) -> impl Fn(&'a str) -> IResult<&'a str, Selector<'a>, E>
where
    E: NomParseError<&'a str>,
{
    map(
        tuple((
            spaced(core_selector),
            opt(metadata_selector),
            cond(allow_inline_comment, opt(comment)),
            multispace0,
        )),
        move |((component, tree), metadata, _, _)| Selector { component, tree, metadata },
    )
}
/// Recognizes selectors, with comments allowed or disallowed.
Recognizes selectors, with comments allowed or disallowed.
Recognizes selectors with comments allowed or disallowed .
fn do_parse_selector<'a, E>(
    allow_inline_comment: bool,
) -> impl Fn(&'a str) -> IResult<&'a str, Selector<'a>, E>
where
    E: NomParseError<&'a str>,
{
    map(
        tuple((
            spaced(core_selector),
            opt(metadata_selector),
            cond(allow_inline_comment, opt(comment)),
            multispace0,
        )),
        move |((component, tree), metadata, _, _)| Selector { component, tree, metadata },
    )
}
fn do_parse_selector < ' a , E > ( allow_inline_comment : bool , ) -> impl Fn ( & ' a str ) -> IResult < & ' a str , Selector < ' a > , E > where E : NomParseError < & ' a str > , { map ( tuple ( ( spaced ( core_selector ) , opt ( metadata_selector ) , cond ( allow_inline_comment , opt ( comment ) ) , multispace0 , ) ) , move | ( ( component , tree ) , metadata , _ , _ ) | Selector { component , tree , metadata } , ) }
Recognizes selectors, with comments allowed or disallowed.
Recognizes selectors with comments allowed or disallowed .
allow_inline_comment
bool
allow_inline_comment
bool