summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-06-06 17:35:45 -0400
committerGlenn Morris <rgm@gnu.org>2013-06-06 17:35:45 -0400
commitd0341459c1a304dc06cc92fcde32ca8d13d7256d (patch)
tree44274dc06887ee016b10727df9def54dc714450b /lisp/font-lock.el
parentc5de26b468adddafb0d50d44de06a1169d20da92 (diff)
downloademacs-d0341459c1a304dc06cc92fcde32ca8d13d7256d.tar.gz
* lisp/font-lock.el (lisp-font-lock-keywords-2): Treat user-error like error
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index d18aea61236..8f4363b0bdf 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -2328,7 +2328,7 @@ in which C preprocessor directives are used. e.g. `asm-mode' and
(1 font-lock-keyword-face)
(2 font-lock-constant-face nil t))
;; Erroneous structures.
- ("(\\(abort\\|assert\\|warn\\|check-type\\|cerror\\|error\\|signal\\)\\_>" 1 font-lock-warning-face)
+ ("(\\(abort\\|assert\\|warn\\|check-type\\|cerror\\|\\(?:user-\\)?error\\|signal\\)\\_>" 1 font-lock-warning-face)
;; Words inside \\[] tend to be for `substitute-command-keys'.
("\\\\\\\\\\[\\(\\(?:\\sw\\|\\s_\\)+\\)\\]"
(1 font-lock-constant-face prepend))