Skip to content

v1.0.1

Choose a tag to compare

@LukasKalbertodt LukasKalbertodt released this 12 Oct 12:00
· 9 commits to main since this release
510d5d7
  • Fix parsing of (byte/C) strings starting with \<newline> (without other escapes). In those cases, the backslash, newline and whitespace were incorrectly kept.
  • Fix to_compile_error causing a second, unrelated error in item position. Output changed from compile_error!("...") to compile_error! { "..." }.
  • Fix bug parsing \u{} (empty unicode escape). This resulted in a null byte, now it's correctly rejected.
  • Fix panic bug when parsing (byte/C) string literals with escapes and a trailing multi-byte char (e.g. "\n"é). These are super fringe cases as they require a literal suffix or a malformed literal.
  • Fix off-by-one bug regarding number of # in raw string literals. Before, 256 were "allowed", which is wrong as Rust only allows up to 255. This also led to an overflow cast as u8 which resulted in an incorrect value().
  • Some documentation & error message fixes