Subject: Re: bug#16881: Acknowledgement (24.3.50; line 584 of tex-mode.el [^'\">{]+ is not working correctly)

From: Keith David Bershatsky <[email-masked]>
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