Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit e5facf9

Browse files
committed
Properly emit c-escaped string tokens
FIX: Fix a bug that broke tokenizing of `e'\n'`-style strings. See https://discuss.codemirror.net/t/postgresql-c-style-escape-using-e/8346
1 parent 898e017 commit e5facf9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tokens.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ export function tokensFor(d: Dialect) {
243243
} else if ((next == Ch.e || next == Ch.E) && input.next == Ch.SingleQuote) {
244244
input.advance()
245245
readLiteral(input, Ch.SingleQuote, true)
246+
input.acceptToken(StringToken)
246247
} else if ((next == Ch.n || next == Ch.N) && input.next == Ch.SingleQuote &&
247248
d.charSetCasts) {
248249
input.advance()

0 commit comments

Comments
 (0)