Commit 39f7186c authored by Chong Yidong's avatar Chong Yidong
Browse files

(c-font-lock-declarators): Iff at the top-level or inside a class

declaration, use c-at-toplevel-p rather than a variable instantiation
to recognise a function declaration.  Suggested by Feng Li
parent bf5546ac
......@@ -897,7 +897,11 @@ casts and declarations are fontified. Used on level 2 and higher."
"[;,]\\|\\s)\\|\\'\\|\\(=\\|\\s(\\)" limit t t))
(setq next-pos (match-beginning 0)
id-face (if (eq (char-after next-pos) ?\()
id-face (if (and (eq (char-after next-pos) ?\()
(let (c-last-identifier-range)
(goto-char next-pos)
got-init (and (match-beginning 1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment