Support '...' quoting in Lisp files

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Support quoting 'like this'.
This commit is contained in:
Eli Zaretskii 2021-09-16 17:10:49 +03:00
parent 2172d6a28d
commit a38675ca88

View 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 "\\_>")