From: Lars Ingebrigtsen <larsi@gnus.org>
To: Kristian Hole <kristian@hole.priv.no>
Cc: Michael Mauger <michael@mauger.com>, 37459@debbugs.gnu.org
Subject: bug#37459: Adds backslash as escape character to mysql syntax-alist
Date: Sun, 09 Aug 2020 20:57:28 +0200 [thread overview]
Message-ID: <874kpbd4vb.fsf@gnus.org> (raw)
In-Reply-To: <CAK0b3NiTeq5qK=zEAZqtn3XR5GauuGwZNs5n2zBZod2MDOAJbg@mail.gmail.com> (Kristian Hole's message of "Sat, 26 Oct 2019 17:25:42 +0200")
Kristian Hole <kristian@hole.priv.no> writes:
> 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).
[...]
> - :syntax-alist ((?# . "< b"))
> + :syntax-alist ((?# . "< b") (?\\ . "\\"))
> :input-filter sql-remove-tabs-filter)
I don't use mysql in sql mode, but this looks "obviously" correct, so
I've applied it to Emacs 28 (along with the doc fix). Perhaps Michael
can chime in...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-08-09 18:57 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
2019-10-26 15:19 ` bug#37459: Corrects sql-mode help about escape character syntax Kristian Hole
2019-10-26 15:25 ` bug#37459: Adds backslash as escape character to mysql syntax-alist Kristian Hole
2020-01-20 19:37 ` Stefan Kangas
2020-08-09 18:57 ` Lars Ingebrigtsen [this message]
2020-08-09 19:02 ` Lars Ingebrigtsen
[not found] ` <handler.37459.B.156889741719764.ack@debbugs.gnu.org>
2019-09-20 13:28 ` bug#37459: 26.2; sql syntax highlight problem when escaping single quote ndame
2019-11-22 14:44 ` bug#37459: Acknowledgement (26.2; sql syntax highlight problem when escaping single quote) ndame
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=874kpbd4vb.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=37459@debbugs.gnu.org \
--cc=kristian@hole.priv.no \
--cc=michael@mauger.com \
/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).