GNU bug report logs -
#37459
26.2; sql syntax highlight problem when escaping single quote
Previous Next
Reported by: ndame <emacsuser <at> freemail.hu>
Date: Thu, 19 Sep 2019 12:51:01 UTC
Severity: minor
Tags: fixed, patch
Found in version 26.2
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Kristian Hole <kristian <at> 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
This bug report was last modified 4 years and 283 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.