aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Hole2020-08-09 20:55:52 +0200
committerLars Ingebrigtsen2020-08-09 20:55:52 +0200
commit8b4e022c5ec8a2f11fee5ec3438f7e91f09c6cc5 (patch)
treec4588619f818a44c027c9a3d840317d7cad0d84d
parentb78583cde7d8aaa1fa19c20975c03d689c78baef (diff)
downloademacs-8b4e022c5ec8a2f11fee5ec3438f7e91f09c6cc5.tar.gz
emacs-8b4e022c5ec8a2f11fee5ec3438f7e91f09c6cc5.zip
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
-rw-r--r--lisp/progmodes/sql.el4
1 files 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."
455 :prompt-regexp "^mysql> " 455 :prompt-regexp "^mysql> "
456 :prompt-length 6 456 :prompt-length 6
457 :prompt-cont-regexp "^ -> " 457 :prompt-cont-regexp "^ -> "
458 :syntax-alist ((?# . "< b")) 458 :syntax-alist ((?# . "< b") (?\\ . "\\"))
459 :input-filter sql-remove-tabs-filter) 459 :input-filter sql-remove-tabs-filter)
460 460
461 (oracle 461 (oracle
@@ -4203,7 +4203,7 @@ must tell Emacs. Here's how to do that in your init file:
4203 4203
4204\(add-hook \\='sql-mode-hook 4204\(add-hook \\='sql-mode-hook
4205 (lambda () 4205 (lambda ()
4206 (modify-syntax-entry ?\\\\ \".\" sql-mode-syntax-table)))" 4206 (modify-syntax-entry ?\\\\ \"\\\\\" sql-mode-syntax-table)))"
4207 :abbrev-table sql-mode-abbrev-table 4207 :abbrev-table sql-mode-abbrev-table
4208 4208
4209 (if sql-mode-menu 4209 (if sql-mode-menu