[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16881: Acknowledgement (24.3.50; line 584 of tex-mode.el [^'\">{]+ i
From: |
Keith David Bershatsky |
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 |
User-agent: |
/ () / () APEL/10.8 Emacs/24.3.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) |
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