Skip to content

Commit

Permalink
Make the doubleDollarQuotedStrings setting actually take effect
Browse files Browse the repository at this point in the history
FIX: Fix a bug where Postgres-style dollar-quoted strings were enabled for all
dialects, and the `doubleDollarQuotedStrings` options was ignored.
  • Loading branch information
marijnh committed Apr 8, 2024
1 parent e5e5832 commit d282a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokens.ts
Expand Up @@ -206,7 +206,7 @@ export function tokensFor(d: Dialect) {
if (inString(next, Space)) {
while (inString(input.next, Space)) input.advance()
input.acceptToken(whitespace)
} else if (next == Ch.Dollar) {
} else if (next == Ch.Dollar && d.doubleDollarQuotedStrings) {
let tag = readWord(input, "")
if (input.next == Ch.Dollar) {
input.advance()
Expand Down

0 comments on commit d282a46

Please sign in to comment.