summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-fonts.el
diff options
context:
space:
mode:
authorOKAZAKI Tetsurou <okazaki.tetsurou@gmail.com>2011-09-07 00:15:42 -0700
committerGlenn Morris <rgm@gnu.org>2011-09-07 00:15:42 -0700
commitff7271b99367cbaf2fd6c345f6a53fbc7d0ba870 (patch)
tree135b07c09414091cf936893eb5b8f1fcbce62d26 /lisp/progmodes/cc-fonts.el
parent183fc730a3fd2f113d16125a90ef23ee5fd3659c (diff)
downloademacs-ff7271b99367cbaf2fd6c345f6a53fbc7d0ba870.tar.gz
cc-fonts.el fix for bug#9443 (tiny change)
* lisp/progmodes/cc-fonts.el (c-font-lock-enclosing-decls): Check for null c-opt-block-decls-with-vars-key.
Diffstat (limited to 'lisp/progmodes/cc-fonts.el')
-rw-r--r--lisp/progmodes/cc-fonts.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index bca95c97e8b..a0089dc1e24 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -1559,7 +1559,8 @@ casts and declarations are fontified. Used on level 2 and higher."
(setq decl-context (c-beginning-of-decl-1)
in-typedef (looking-at c-typedef-key))
(if in-typedef (c-forward-token-2))
- (when (looking-at c-opt-block-decls-with-vars-key)
+ (when (and c-opt-block-decls-with-vars-key
+ (looking-at c-opt-block-decls-with-vars-key))
(goto-char ps-elt)
(when (c-safe (c-forward-sexp))
(c-forward-syntactic-ws)