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


View this message in rfc822 format

From: Keith David Bershatsky <esq <at> lawlist.com>
To: 16881 <at> debbugs.gnu.org
Subject: bug#16881: Acknowledgement (24.3.50; line 584 of tex-mode.el [^'\">{]+ is not working correctly)
Date: Tue, 25 Feb 2014 16:51:02 -0800
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,

Keith




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.