diff options
author | OKAZAKI Tetsurou <okazaki.tetsurou@gmail.com> | 2011-09-07 00:15:42 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2011-09-07 00:15:42 -0700 |
commit | ff7271b99367cbaf2fd6c345f6a53fbc7d0ba870 (patch) | |
tree | 135b07c09414091cf936893eb5b8f1fcbce62d26 /lisp/progmodes/cc-fonts.el | |
parent | 183fc730a3fd2f113d16125a90ef23ee5fd3659c (diff) | |
download | emacs-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.el | 3 |
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) |