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

Commit d282a46

Browse files
committed
Make the doubleDollarQuotedStrings setting actually take effect
FIX: Fix a bug where Postgres-style dollar-quoted strings were enabled for all dialects, and the `doubleDollarQuotedStrings` options was ignored.
1 parent e5e5832 commit d282a46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export function tokensFor(d: Dialect) {
206206
if (inString(next, Space)) {
207207
while (inString(input.next, Space)) input.advance()
208208
input.acceptToken(whitespace)
209-
} else if (next == Ch.Dollar) {
209+
} else if (next == Ch.Dollar && d.doubleDollarQuotedStrings) {
210210
let tag = readWord(input, "")
211211
if (input.next == Ch.Dollar) {
212212
input.advance()

0 commit comments

Comments
 (0)