]> code.delx.au - gnu-emacs/commitdiff
Fix last change on 2016-01-02
authorLeo Liu <sdl.web@gmail.com>
Mon, 11 Apr 2016 12:19:38 +0000 (20:19 +0800)
committerLeo Liu <sdl.web@gmail.com>
Mon, 11 Apr 2016 12:20:13 +0000 (20:20 +0800)
* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Move
  `cl-errs-re' before `lisp--el-match-keyword'; don't use `prepend'
  which highlights `cl-errs-re' even in comments or strings.

lisp/emacs-lisp/lisp-mode.el

index 3f3455575828082ee62944b1059af9f6df0c8143..315b3d563435dd303cbdbfaf0cde8c7fc8cb2090 100644 (file)
@@ -396,6 +396,9 @@ This will generate compile-time constants from BINDINGS."
        lisp-el-font-lock-keywords-1
        `( ;; Regexp negated char group.
          ("\\[\\(\\^\\)" 1 font-lock-negation-char-face prepend)
+         ;; Erroneous structures.
+         (,(concat "(" el-errs-re "\\_>")
+          (1 font-lock-warning-face))
          ;; Control structures.  Common Lisp forms.
          (lisp--el-match-keyword . 1)
          ;; Exit/Feature symbols as constants.
@@ -403,9 +406,6 @@ This will generate compile-time constants from BINDINGS."
                    "[ \t']*\\(" lisp-mode-symbol-regexp "\\)?")
            (1 font-lock-keyword-face)
            (2 font-lock-constant-face nil t))
-         ;; Erroneous structures.
-         (,(concat "(" el-errs-re "\\_>")
-          (1 font-lock-warning-face prepend))
          ;; Words inside \\[] tend to be for `substitute-command-keys'.
          (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]")
           (1 font-lock-constant-face prepend))