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
C: a // comment ending in a backslash does not continue onto the next line (line splicing), so the next line leaks into the code stream #9434
Found by the SOP-002 gap-cell decoy work (protocol SOP-002-v1, epic #8863), batch c (Req A, comment forms).
C11 6.4.9 / 5.1.1.2: a backslash-newline is spliced (phase 2) before comments are recognised, so a // comment ending in \ also comments out the following line. Prism ends the // comment at the newline.
Snippets (each is two lines):
// first \#include <stdio.h>
// first \int n = (int) x;
// first \static int counter = 0;
Expected: import / explicit_casts / globals 0 (the second line is comment text). Actual: 1 each. The same lexer path likely serves cpp and objective-c (not checked here).
Activity
tests/decoys: SOP-002 gap-cell decoy suites for go, rust and c (Part of