Function typst_syntax::is_ident
source ยท pub fn is_ident(string: &str) -> boolExpand description
Whether a string is a valid Typst identifier.
In addition to what is specified in the Unicode Standard, we allow:
_as a starting character,_and-as continuing characters.