From: Kristian Hole <kristian@hole.priv.no>
To: 37459@debbugs.gnu.org
Subject: bug#37459: Adds backslash as escape character to mysql syntax-alist
Date: Sat, 26 Oct 2019 17:25:42 +0200 [thread overview]
Message-ID: <CAK0b3NiTeq5qK=zEAZqtn3XR5GauuGwZNs5n2zBZod2MDOAJbg@mail.gmail.com> (raw)
In-Reply-To: <Ax37cA.9fwaS3rsB6K.LgjArGUtGXoZUrfXqJZz@freemail.hu>
[-- Attachment #1.1: Type: text/plain, Size: 473 bytes --]
I've generated patches for takeaways (1) and (2)
Patch attached to previous message:
Corrects sql-mode help about escape character syntax
Changes the example from the incorrect use of
punctuation rule, to the escape character rule (Bug#37459).
This patch:
Adds backslash as escape character to mysql syntax-alist
In MySQL syntax backslash denotes an escape sequence.
This change adds backslash to the syntax-alist of
MySQL in sql-mode as per (Bug#37459).
[-- Attachment #1.2: Type: text/html, Size: 602 bytes --]
[-- Attachment #2: 0002-Adds-backslash-as-escape-character-to-mysql-syntax-a.patch --]
[-- Type: application/octet-stream, Size: 884 bytes --]
From 4953d7bb249502fd8d87295b81bd381e70134fc0 Mon Sep 17 00:00:00 2001
From: kahole <kristian@hole.priv.no>
Date: Sat, 26 Oct 2019 17:08:17 +0200
Subject: [PATCH 2/2] Adds backslash as escape character to mysql syntax-alist
In MySQL syntax backslash denotes an escape sequence.
This change adds backslash to the syntax-alist of
MySQL in sql-mode as per (Bug#37459).
---
lisp/progmodes/sql.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index f985157202..81e0d8cf89 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -461,7 +461,7 @@ sql-product-alist
:prompt-regexp "^mysql> "
:prompt-length 6
:prompt-cont-regexp "^ -> "
- :syntax-alist ((?# . "< b"))
+ :syntax-alist ((?# . "< b") (?\\ . "\\"))
:input-filter sql-remove-tabs-filter)
(oracle
--
2.18.0
next prev parent reply other threads:[~2019-10-26 15:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-19 12:39 bug#37459: 26.2; sql syntax highlight problem when escaping single quote ndame
[not found] ` <handler.37459.B.156889741719764.ack@debbugs.gnu.org>
2019-09-20 13:28 ` ndame
2019-11-22 14:44 ` bug#37459: Acknowledgement (26.2; sql syntax highlight problem when escaping single quote) ndame
2019-10-26 15:19 ` bug#37459: Corrects sql-mode help about escape character syntax Kristian Hole
2019-10-26 15:25 ` Kristian Hole [this message]
2020-01-20 19:37 ` bug#37459: Adds backslash as escape character to mysql syntax-alist Stefan Kangas
2020-08-09 18:57 ` Lars Ingebrigtsen
2020-08-09 19:02 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAK0b3NiTeq5qK=zEAZqtn3XR5GauuGwZNs5n2zBZod2MDOAJbg@mail.gmail.com' \
--to=kristian@hole.priv.no \
--cc=37459@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).