From 97f666e21e8f2837369ac50efeb31ddb5e07c628 Mon Sep 17 00:00:00 2001 From: Mauro Aranda Date: Mon, 8 Apr 2019 20:24:32 -0300 Subject: [PATCH] Avoid false positives and false negatives of Info-quoted face * lisp/info.el (Info-mode-font-lock-keywords): Modify the regexp, for matching single quotes of opening single quote and closing single quote, and avoid matching text followed by a curly quote when it is not quoting. (Bug#35202) --- lisp/info.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/info.el b/lisp/info.el index f3b413a..268ecd8 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -4269,7 +4269,7 @@ Info-quoted ;; the former can be done much more reliably, i.e. without risking ;; false positives. (defvar Info-mode-font-lock-keywords - '(("‘\\([^’]*\\)’" (1 'Info-quoted)))) + '(("‘\\([‘’]?\\|[^‘’]*\\)’" (1 'Info-quoted)))) ;; Autoload cookie needed by desktop.el ;;;###autoload -- 2.7.4