GNU bug report logs - #16881
24.3.50; line 584 of tex-mode.el [^'\">{]+ is not working correctly

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Tue, 25 Feb 2014 17:45:02 UTC

Severity: minor

Found in version 24.3.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 16881 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 16881 <at> debbugs.gnu.org
Subject: Re: bug#16881: 24.3.50; line 584 of tex-mode.el [^'\">{]+ is not
 working correctly
Date: Sat, 29 May 2021 13:46:27 +0200
Keith David Bershatsky <esq <at> lawlist.com> writes:

> The proposed new regexp that I submitted with my initial bug report was much too broad -- i.e., it did not stop at the first pair of ending quotes.
>
> Here is a revised draft which seems to be working better:
>
>   ;; Text between `` quotes ''.
>   (list (concat (regexp-opt `("``" "\"<" "\"`" "<<" "«") t)
>           "\\(\\(.\\|\n\\)+?\\)"
>           (regexp-opt `("''" "\">" "\"'" ">>" "»") t))
>        '(1 font-lock-keyword-face)
>        '(2 font-lock-string-face)
>        '(4 font-lock-keyword-face))

Thanks; I pushed this change to Emacs 28.

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




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

Previous Next


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