Skip to content

lexer: Fix multi-quoted string statement lines with nested strings#391

Merged
mikesamuel merged 1 commit intomainfrom
issue387
Mar 25, 2026
Merged

lexer: Fix multi-quoted string statement lines with nested strings#391
mikesamuel merged 1 commit intomainfrom
issue387

Conversation

@mikesamuel
Copy link
Copy Markdown
Contributor

The pass that handles statement inversion for multi-quoted strings was handling the distinction between kinds of left delimiters but was making assumptions about right delimiters.

Fixes #387

The pass that handles statement inversion for multi-quoted strings was
handling the distinction between kinds of left delimiters but was
making assumptions about right delimiters.

Fixes #387

Signed-off-by: Mike Samuel <mikesamuel@gmail.com>
@@ -581,14 +581,13 @@ private class StringFixer(
},
)
TokenType.RightDelimiter -> {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Line 576 above makes clear why this was wrong.

@mikesamuel mikesamuel merged commit f2d8e3b into main Mar 25, 2026
2 checks passed
@mikesamuel mikesamuel deleted the issue387 branch March 25, 2026 19:24
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.

String template loop crash

2 participants