You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preserve raw-string contents when detecting Rust function boundaries #889
The scanner handles every quote as a normal-string delimiter and has no raw-string hash state. An embedded quote in a valid raw string ends string state too early and exposes text/braces as Rust syntax.
Reproduction
Executed the helper at fd07427f4a976de05e38eff3ee1760db97fbb761 using importlib and add_function_spacing on:
fnfirst(){let s = r#"hello " { }fn fake() {}"#;}fnsecond(){}
The result is unchanged; the intended separating blank line is missing. Starting point: tools/format-rust.py.
Scope
Recognize raw/byte-raw delimiters across lines, including hash counts. Function-like text inside strings must never affect spacing or literal bytes. Difficulty: medium.
Completion criteria
Handle embedded quotes/braces and multiline raw strings.
Activity
tecnolgd commentedon Oct 16, 2026
Hey @LunaStev , I'd like to work on this issue. Could you please assign it to me?
LunaStev commentedon Oct 16, 2026
Yes
fix(tools): preserve raw-string contents when detecting Rust function…