fn any_identifier(s: &str) -> IResult<&str, &str>
Expand description

Nom parser for identifiers. An identifier may contain any alphanumeric character, as well as ‘_’ and ‘-’ at any place excepted the first one which cannot be ‘-’.

Usually identifiers are not allowed to start with a number, but we chose to allow this here otherwise options like “mode=2d” won’t parse if “2d” is an alias for an enum variant.