From a38675ca884b21e82cfe0c5b43fa168647bdaa6a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 16 Sep 2021 17:10:49 +0300 Subject: [PATCH] Support '...' quoting in Lisp files * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Support quoting 'like this'. --- lisp/emacs-lisp/lisp-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 42e943a60df..b3b1efc8d2d 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -462,8 +462,8 @@ This will generate compile-time constants from BINDINGS." ;; Ineffective backslashes (typically in need of doubling). ("\\(\\\\\\)\\([^\"\\]\\)" (1 (elisp--font-lock-backslash) prepend)) - ;; Words inside ‘’ and `' tend to be symbol names. - (,(concat "[`‘]\\(" lisp-mode-symbol-regexp "\\)['’]") + ;; Words inside ‘’, '' and `' tend to be symbol names. + (,(concat "[`‘']\\(" lisp-mode-symbol-regexp "\\)['’]") (1 font-lock-constant-face prepend)) ;; Constant values. (,(concat "\\_<:" lisp-mode-symbol-regexp "\\_>") -- 2.39.5