Skip to content

Unified: Handle multi-line string literals and other variations - #23017

Draft
geoffw0 wants to merge 5 commits into
github:mainfrom
geoffw0:unifiedstringliterals
Draft

geoffw0 wants to merge 5 commits into
github:mainfrom
geoffw0:unifiedstringliterals

Conversation

@geoffw0

@geoffw0 geoffw0 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Handle multi-line string literals and other variations.

Copilot made this change as part of some other work (porting the regex library), but I decided to split it out as a separate piece of work as it doesn't depend on any of that. The two changes seem reasonable to me, but I'm not familiar with these areas of code, especially the extractor part.

@asgerf I'd like to know what you think, should we be aiming to merge this, fix it, or is this the wrong direction entirely?

geoffw0 and others added 5 commits November 4, 2026 12:08
Record plain, escaped, raw, multiline, and interpolated literals so the string decoding required by regex parsing can be reviewed separately.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exclude extractor-provided builtins so expected results do not depend on the extractor pack location.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise full literal expressions, including currently missing multiline and escaped values, and retain an extractor corpus case distinguishing constants from interpolation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve multi-segment constants as literals while keeping interpolations separate. Decode escaped, raw, Unicode, and multiline strings so regex parsing receives runtime pattern text rather than source syntax.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Unified labels Nov 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant