summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-langs.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2021-12-29 19:05:11 +0000
committerAlan Mackenzie <acm@muc.de>2021-12-29 19:05:11 +0000
commit06545bc0cc533b1abd831dd521df5f3369675d61 (patch)
tree06ced1f9d7ef84f6df469881fb417385c0a3bc6e /lisp/progmodes/cc-langs.el
parentf11779f01b229235feb4ce0c1b20a8c2fabfbb88 (diff)
downloademacs-06545bc0cc533b1abd831dd521df5f3369675d61.tar.gz
emacs-06545bc0cc533b1abd831dd521df5f3369675d61.tar.bz2
emacs-06545bc0cc533b1abd831dd521df5f3369675d61.zip
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.
Diffstat (limited to 'lisp/progmodes/cc-langs.el')
-rw-r--r--lisp/progmodes/cc-langs.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 53f6206a821..85cc8871100 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -3180,8 +3180,8 @@ Note that Java specific rules are currently applied to tell this from
(append
(c-lang-const c-flat-decl-block-kwds)
(if (c-lang-const c-recognize-<>-arglists)
- '("{" "}" ";" "," ")" ":" "<")
- '("{" "}" ";" "," ")" ":")))))
+ '("{" "}" ";" "*" "," ")" ":" "<")
+ '("{" "}" ";" "*" "," ")" ":")))))
(c-lang-defvar c-brace-stack-thing-key (c-lang-const c-brace-stack-thing-key))
(c-lang-defconst c-brace-stack-no-semi-key