GNU bug report logs - #24739
25.1; conf-mode can't handle non escaped single quotes

Previous Next

Package: emacs;

Reported by: Diego Berrocal <cestdiego <at> gmail.com>

Date: Wed, 19 Oct 2016 16:39:02 UTC

Severity: minor

Tags: confirmed

Found in version 25.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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 24739 <at> debbugs.gnu.org, Diego Berrocal <cestdiego <at> gmail.com>
Subject: bug#24739: 25.1; conf-mode can't handle non escaped single quotes
Date: Sun, 28 Jul 2019 11:50:56 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>>> firstProperty=Hi I'm Diego
>>> secondProperty=I have a stringquote style.
>
>> No font-lock-string-face in sight, and there's no mention of it in the
>> file.  So is this some general font-lock thing that's configured
>> somewhere else?  Anybody know how this stuff works?
>
> font-lock-string-face comes from font-lock-syntactic-face-function,
> because ' has string delimiter syntax in conf-mode (see
> conf-mode-syntax-table).

Hm...  Oh!

    (modify-syntax-entry ?\' "\"" table)

I was searching for ?' and only found the entry in
conf-toml-mode-syntax-table.  I'll remove that superfluous backslash.

> I think it should be possible to make a syntax-propertize rule that
> catches unmatched quotes and sets them to punctuation syntax.  We do
> something similar in sgml-syntax-propertize.

I see.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.