]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: c-update-brace-stack: After struct foo *, do not expect a brace.
authorAlan Mackenzie <acm@muc.de>
Wed, 29 Dec 2021 19:05:11 +0000 (19:05 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 29 Dec 2021 19:05:11 +0000 (19:05 +0000)
commit06545bc0cc533b1abd831dd521df5f3369675d61
tree06ced1f9d7ef84f6df469881fb417385c0a3bc6e
parentf11779f01b229235feb4ce0c1b20a8c2fabfbb88
CC Mode: c-update-brace-stack: After struct foo *, do not expect a brace.

This fixes bug #52796.

* lisp/progmodes/cc-engine.el (c-update-brace-stack): Handle a "*" like a
semicolon, cancelling the expectation of a brace.

* lisp/progmodes/cc-langs.el (c-brace-stack-thing-key): Add a "*" into the
sets of significant characters.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el