[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 9d7e08d: Avoid false positives and false negative
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 9d7e08d: Avoid false positives and false negatives of Info-quoted face |
Date: |
Sun, 21 Apr 2019 08:00:47 -0400 (EDT) |
branch: emacs-26
commit 9d7e08dd8f28b1c62dfdff592ba92e8d2fa14726
Author: Mauro Aranda <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/info.el b/lisp/info.el
index 301f6ec..94b0ef6 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4262,8 +4262,9 @@ With a zero prefix arg, put the name inside a function
call to `info'."
;; We deliberately fontify only ‘..’ quoting, and not `..', because
;; the former can be done much more reliably, i.e. without risking
;; false positives.
+;; FIXME: It doesn't handle nested quotes.
(defvar Info-mode-font-lock-keywords
- '(("‘\\([^’]*\\)’" (1 'Info-quoted))))
+ '(("‘\\([‘’]\\|[^‘’]*\\)’" (1 'Info-quoted))))
;; Autoload cookie needed by desktop.el
;;;###autoload
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 9d7e08d: Avoid false positives and false negatives of Info-quoted face,
Eli Zaretskii <=