]> git.eshelyaron.com Git - emacs.git/commitdiff
Support '...' quoting in Lisp files
authorEli Zaretskii <eliz@gnu.org>
Thu, 16 Sep 2021 14:10:49 +0000 (17:10 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 16 Sep 2021 14:10:49 +0000 (17:10 +0300)
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Support quoting 'like this'.

lisp/emacs-lisp/lisp-mode.el

index 42e943a60df6916e0dc087930d295fafcf986b82..b3b1efc8d2df8e866e0e4f10a7bea566ebf42efd 100644 (file)
@@ -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 "\\_>")