pub fn is_ident(string: &str) -> bool
Expand 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.
pub fn is_ident(string: &str) -> bool
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.