Skip to content

Improve line continuation detection inside string literals#24

Closed
d-alonso wants to merge 0 commit into
codeefrom
feature/improveContinuationString
Closed

Improve line continuation detection inside string literals#24
d-alonso wants to merge 0 commit into
codeefrom
feature/improveContinuationString

Conversation

@d-alonso

@d-alonso d-alonso commented Jan 7, 2026

Copy link
Copy Markdown

I think the test is pretty self explanatory. The loop consuming the string literals was double-advancing when detecting an ampersand that was not really a line continuation.

@d-alonso d-alonso self-assigned this Jan 7, 2026
@d-alonso d-alonso requested review from a team, alvrogd and inaki-amatria and removed request for a team January 7, 2026 13:00

@alvrogd alvrogd left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstreamable, right?

Comment thread test/corpus/line_continuations.txt
@d-alonso d-alonso force-pushed the feature/improveContinuationString branch 2 times, most recently from b16f802 to 360f154 Compare January 7, 2026 15:12
@d-alonso

d-alonso commented Jan 7, 2026

Copy link
Copy Markdown
Author

I have now merged the PR upstream and turned this PR into a merge back downstream

@d-alonso d-alonso closed this Jan 8, 2026
@d-alonso d-alonso force-pushed the feature/improveContinuationString branch from 360f154 to 865555f Compare January 8, 2026 09:17
@d-alonso

d-alonso commented Jan 8, 2026

Copy link
Copy Markdown
Author

This PR was merged manually

@inaki-amatria inaki-amatria deleted the feature/improveContinuationString branch January 29, 2026 08:06
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