From 8b4e022c5ec8a2f11fee5ec3438f7e91f09c6cc5 Mon Sep 17 00:00:00 2001 From: Kristian Hole Date: Sun, 9 Aug 2020 20:55:52 +0200 Subject: [PATCH] Adds backslash as escape character to mysql syntax-alist * lisp/progmodes/sql.el (sql-product-alist): The \ character is an escape character in mysql (bug#37459). (sql-mode): Changes the example from the incorrect use of punctuation rule, to the escape character rule. Copyright-paperwork-exempt: yes --- lisp/progmodes/sql.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index a70b5ed60d6..7c4feb38c3a 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -455,7 +455,7 @@ file. Since that is a plaintext file, this could be dangerous." :prompt-regexp "^mysql> " :prompt-length 6 :prompt-cont-regexp "^ -> " - :syntax-alist ((?# . "< b")) + :syntax-alist ((?# . "< b") (?\\ . "\\")) :input-filter sql-remove-tabs-filter) (oracle @@ -4203,7 +4203,7 @@ must tell Emacs. Here's how to do that in your init file: \(add-hook \\='sql-mode-hook (lambda () - (modify-syntax-entry ?\\\\ \".\" sql-mode-syntax-table)))" + (modify-syntax-entry ?\\\\ \"\\\\\" sql-mode-syntax-table)))" :abbrev-table sql-mode-abbrev-table (if sql-mode-menu -- 2.39.5