Skip to main content

bare_token

Function bare_token 

Source
pub fn bare_token<'src>() -> impl Parser<'src, &'src str, String, Err<Simple<'src, char>>> + Clone
Expand description

Parse an unquoted token without wrapping it in BareToken.

Unlike ident, this accepts @ because a resolver may need to interpret the token later. Quotes, pattern metacharacters, whitespace, and structural delimiters are rejected.