Skip to content

test: decl_parity misses splice-terminated comments after tabs (#1549) - #1889

Merged
zackees merged 2 commits into
masterfrom
fix/1549-decl-splice
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/1549-decl-splice

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Fixes #1549.

The Windows Rust Tests job in run 39824614077 failed random_pieces_match_oracle on input "void f \"s\"*#}1.5b}}// c\nfloat foob*floatf\t\t/**'c'\\\n". That is the documented tokenizer oracle exclusion from #1542: a terminal line splice inside an unterminated comment. But the cf lexer merges the leading tabs into the comment's SpaceTab token, so the filter's text[unmerged_start] == '/' check never saw the comment.

  • RED 4597867: adds the two inputs from the issue (already excluded) and this one as fixed cases. The new case fails: excluded returns false.
  • GREEN: skips leading spaces and tabs before looking for /. All 8 decl_parity tests pass and ./lint is clean.

Test-only change; no production parser or C test changes. Tiers 2-4 do not apply.

@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit e249e0f Oct 23, 2026
30 checks passed
@zackees
zackees deleted the fix/1549-decl-splice branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: obs-callback decl parser logs nothing on an unterminated comment where C logs Unexpected EOF

1 participant