Skip to content

Fix unknown escape sequences in string literals to preserve backslash#38

Merged
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-6HeIe
Dec 25, 2025
Merged

Fix unknown escape sequences in string literals to preserve backslash#38
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-6HeIe

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

Previously, when the lexer encountered an unknown escape sequence like
\S in a string, it would only write the character after the backslash,
losing the backslash itself. This caused strings like 'Win\Sys' to be
stored as 'WinSys' instead of 'Win\Sys'.

This fix preserves both the backslash and the following character for
unknown escape sequences, matching ClickHouse's behavior.

Enables 5 passing tests.

Previously, when the lexer encountered an unknown escape sequence like
\S in a string, it would only write the character after the backslash,
losing the backslash itself. This caused strings like 'Win\Sys' to be
stored as 'WinSys' instead of 'Win\Sys'.

This fix preserves both the backslash and the following character for
unknown escape sequences, matching ClickHouse's behavior.

Enables 5 passing tests.
@kyleconroy kyleconroy merged commit 3ea3be0 into main Dec 25, 2025
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