mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
The untranslated-strings scan and the undo step-name check read only "..." literals. A message, a &str constant, a step name or a format! string written as r"..." or r#"..."# was skipped, and a raw string that was read went through escape decoding and ended at its first inner quote. The scan now reads a raw string up to the quote followed by the literal's own number of # and keeps its backslashes, as the Rust Reference defines raw strings (https://doc.rust-lang.org/reference/tokens.html#raw-string-literals). Byte strings and C strings, raw or not, are not read as text. The walkers that find an error helper's argument, a statement's end, a closure's returned values and a format!'s arguments now use the same literal boundaries, so a comma, semicolon, bracket or return inside a raw string or a character literal is no longer read as syntax. No current message or step name is a raw string, so no catalog row changes.