Skip to content

fix: support typographic quotes and zero-width spaces - #967

Open
cnbei wants to merge 2 commits into
sql-formatter-org:masterfrom
cnbei:cursor/unicode-quotes-transactsql-cf53
Open

fix: support typographic quotes and zero-width spaces#967
cnbei wants to merge 2 commits into
sql-formatter-org:masterfrom
cnbei:cursor/unicode-quotes-transactsql-cf53

Conversation

@cnbei

@cnbei cnbei commented Aug 30, 2026

Copy link
Copy Markdown

Fixes #942

U+200B is not JS whitespace, and typographic quotes U+2018/U+2019 were not string delimiters, so pasted Transact-SQL like the #942 playground snippet failed to tokenize.

Treat ZWSP as whitespace, accept paired curly single quotes as strings (not mixed with ASCII apostrophe), and add regression tests. 5907 Jest tests passed.

cursoragent and others added 2 commits August 30, 2026 15:47
Tokenize U+2018/U+2019 as string delimiters and treat U+200B as
whitespace so copy-pasted Transact-SQL no longer fails to parse.

Co-authored-by: cnbei <baymy@foxmail.com>
Co-authored-by: cnbei <baymy@foxmail.com>
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.

Problem with unicode quotes in Transact-SQL

2 participants