Skip to content

fix(comp): C comments keep Unicode separators - #1972

Merged
Lorenzobattistela merged 4 commits into
bendlang:mainfrom
toprameen:fix-c-comment-line-separators
Oct 31, 2026
Merged

Lorenzobattistela merged 4 commits into
bendlang:mainfrom
toprameen:fix-c-comment-line-separators

Conversation

@toprameen

Copy link
Copy Markdown
Contributor

Foreign C effects containing U+2028 or U+2029 inside a // comment can fail compilation when later comment text resembles a CID or FID placeholder.

The scanner now uses each language’s comment boundaries while sharing the remaining pattern. The existing fixture tests retained C comments and live JavaScript code after a separator.

Local source, compiled CLI, Bun/Node and native checks pass. Repository gate: 54/54. Compiler tokens: 65,960 → 65,998. TypeScript retains seven baseline diagnostics.

@Lorenzobattistela Lorenzobattistela self-assigned this Oct 30, 2026
@toprameen
toprameen marked this pull request as ready for review October 31, 2026 01:40
Lorenzobattistela and others added 2 commits October 31, 2026 17:19
… the JS test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Lorenzobattistela
Lorenzobattistela merged commit 1cecb12 into bendlang:main Oct 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants