I am looking for a way to make sql-mode highlight double-quoted strings in the same way as single-quoted strings. Setting the product to MySQL (which is the correct product for me) did not achieve this result.

1 Answer 1


Maybe this?

(let* ((mysql (alist-get 'mysql sql-product-alist))
       (syntax (plist-get mysql :syntax-alist)))
  (plist-put mysql :syntax-alist (cons '(?\" . "\"") syntax)))
  • Works great for me!
    – quazgar
    Aug 12, 2020 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.