]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix an enum intro being parsed as defun-block-intro
authorAlan Mackenzie <acm@muc.de>
Fri, 2 Feb 2018 20:46:35 +0000 (20:46 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 2 Feb 2018 20:46:35 +0000 (20:46 +0000)
commitd3090a3a3e22c4b0f4e0e833942f5942eb392c51
treefb3f5bcb56b8c735e4a339c54a9f814c92fb2403
parent0443411f5ce2594a6ec092cd96b92d0b920372f5
CC Mode: Fix an enum intro being parsed as defun-block-intro

* lisp/progmodes/cc-engine.el (c-inside-bracelist-p): Return a bufpos rather
than t for the enum case.
(c-add-stmt-syntax, c-guess-continued-construct): Replace
c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p, since the former
does not recognize enum brace lists, but the latter does.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Replace
c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el