From: Eli Zaretskii Date: Thu, 16 Sep 2021 14:10:49 +0000 (+0300) Subject: Support '...' quoting in Lisp files X-Git-Tag: emacs-28.0.90~922 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a38675ca884b21e82cfe0c5b43fa168647bdaa6a;p=emacs.git Support '...' quoting in Lisp files * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Support quoting 'like this'. --- 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 "\\_>")