Commit e51b27ec authored by Dmitry Gutov's avatar Dmitry Gutov

Remove the highlighting support for quoting 'like this' inside Lisp docstrings

Remove the highlighting support for quoting 'like this' inside
Lisp docstrings.  This part of
c4151ebe seems to have been
unintentional, considering substitute-command-keys gives wrong
output for such usage.
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2)
(lisp-cl-font-lock-keywords-2): Do not highlight text between two
straight quotes as symbol.
parent b1abce1a
......@@ -409,8 +409,8 @@ This will generate compile-time constants from BINDINGS."
;; Words inside \\[] tend to be for `substitute-command-keys'.
(,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]")
(1 font-lock-constant-face prepend))
;; Words inside ‘’ and '' and `' tend to be symbol names.
(,(concat "['`]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)"
;; Words inside ‘’ and `' tend to be symbol names.
(,(concat "[`]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)"
lisp-mode-symbol-regexp "\\)[']")
(1 font-lock-constant-face prepend))
;; Constant values.
......@@ -461,8 +461,8 @@ This will generate compile-time constants from BINDINGS."
;; Erroneous structures.
(,(concat "(" cl-errs-re "\\_>")
(1 font-lock-warning-face))
;; Words inside ‘’ and '' and `' tend to be symbol names.
(,(concat "['`]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)"
;; Words inside ‘’ and `' tend to be symbol names.
(,(concat "[`]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)"
lisp-mode-symbol-regexp "\\)[']")
(1 font-lock-constant-face prepend))
;; Constant values.
......
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