0

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

Maybe this?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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