aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2016-03-06 02:40:49 +0200
committerDmitry Gutov2016-03-06 02:41:25 +0200
commite51b27ec2ce214ef3d8377a27ee9d857bcc66afc (patch)
tree1d3862b596be056946c8f9bc36eb90edb3a4c05f
parentb1abce1a30c66a22766e3d4b8b4ff9ae852f150c (diff)
downloademacs-e51b27ec2ce214ef3d8377a27ee9d857bcc66afc.tar.gz
emacs-e51b27ec2ce214ef3d8377a27ee9d857bcc66afc.zip
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 c4151ebe15479de4c2e511b068cdf9af6a4576cf 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.
-rw-r--r--lisp/emacs-lisp/lisp-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index cb8abde52ed..3f345557582 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -409,8 +409,8 @@ This will generate compile-time constants from BINDINGS."
409 ;; Words inside \\[] tend to be for `substitute-command-keys'. 409 ;; Words inside \\[] tend to be for `substitute-command-keys'.
410 (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]") 410 (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]")
411 (1 font-lock-constant-face prepend)) 411 (1 font-lock-constant-face prepend))
412 ;; Words inside ‘’ and '' and `' tend to be symbol names. 412 ;; Words inside ‘’ and `' tend to be symbol names.
413 (,(concat "['`‘]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)" 413 (,(concat "[`‘]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)"
414 lisp-mode-symbol-regexp "\\)['’]") 414 lisp-mode-symbol-regexp "\\)['’]")
415 (1 font-lock-constant-face prepend)) 415 (1 font-lock-constant-face prepend))
416 ;; Constant values. 416 ;; Constant values.
@@ -461,8 +461,8 @@ This will generate compile-time constants from BINDINGS."
461 ;; Erroneous structures. 461 ;; Erroneous structures.
462 (,(concat "(" cl-errs-re "\\_>") 462 (,(concat "(" cl-errs-re "\\_>")
463 (1 font-lock-warning-face)) 463 (1 font-lock-warning-face))
464 ;; Words inside ‘’ and '' and `' tend to be symbol names. 464 ;; Words inside ‘’ and `' tend to be symbol names.
465 (,(concat "['`‘]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)" 465 (,(concat "[`‘]\\(\\(?:\\sw\\|\\s_\\|\\\\.\\)"
466 lisp-mode-symbol-regexp "\\)['’]") 466 lisp-mode-symbol-regexp "\\)['’]")
467 (1 font-lock-constant-face prepend)) 467 (1 font-lock-constant-face prepend))
468 ;; Constant values. 468 ;; Constant values.