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
Rust: a block comment opened by "/*/" is not recognised, so its whole body leaks into every code-stream family #9461
Found by the SOP-002 gap-cell decoy work (protocol SOP-002-v1, epic #8863), batch c (Req A, comment forms).
Rust reference, "Comments": /* opens a block comment and the / of /*/ is ordinary text, so /*/ ... */ is one complete comment (rustc and C/Go lexers agree). Through Prism(...).split_streams() the Rust code stream keeps the whole text and the comment stream is empty, so the body is scanned as code.
Expected: import / encapsulation / inline_asm 0 (all comment text). Actual: 1 each; code_stream == the raw input, comment_stream == "". For comparison c and go blank /*/ ... */ correctly, and ordinary nested /* a /* b */ c */, /** */, /*! */ all work in rust. Likely affects every rust family, not only these three.
Activity
tests/decoys: SOP-002 gap-cell decoy suites for go, rust and c (Part of