]> git.eshelyaron.com Git - emacs.git/commit
C++ Mode: handle comma separated brace initializers.
authorAlan Mackenzie <acm@muc.de>
Fri, 4 Sep 2020 19:10:17 +0000 (19:10 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 4 Sep 2020 19:10:17 +0000 (19:10 +0000)
commit793871310599f8c75cf86bed97bdad70577cc5dd
tree0fee5b0ac36b9573d70606d28cacb3aba724424b
parent2b95300cf8e3da9f505233f116cabe39a3564fa7
C++ Mode: handle comma separated brace initializers.

This includes both indentation and fontification.

* lisp/progmodes/cc-engine.el (c-do-declarators): Handle brace initializers
without = correctly.
(c-looking-at-or-maybe-in-bracelist): Use c-do-declarators with a simple
inline function to check that after-type-id-pos points to the start of a
declarator.

* lisp/progmodes/cc-langs.el (c-recognize-bare-brace-inits): New lang
const/variable.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el