Commit 9d7e08dd authored by Mauro Aranda's avatar Mauro Aranda Committed by Eli Zaretskii

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)
parent 75b589c7
Pipeline #1389 passed with stage
in 28 minutes and 23 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment