tinystr
tinystr copied to clipboard
Parse escape sequeces in macros
The sketchy string literal parser is now less sketchy!
If a string with escape sequences is passed to any macro this patch will
parse the escapes. It will parse all escapes listed in the rust
reference except for \u{XXXX}
Unicode escapes because they are complicated and non-ASCII is
explicitly unsupported.
All in the name of not adding syn to Cargo.toml.
Would it be possible to rely on the absolution
crate for this? That crate is explicitly designed for avoiding a syn
dep but getting full token parsing