1

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

2

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, 2020 at 11:08

Your Answer

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

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