bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#16881: 24.3.50; line 584 of tex-mode.el [^'\">{]+ is not working correctly
Date: Sat, 29 May 2021 13:46:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Keith David Bershatsky <esq@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]