diff options
author | Alan Mackenzie <acm@muc.de> | 2021-12-29 19:05:11 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2021-12-29 19:05:11 +0000 |
commit | 06545bc0cc533b1abd831dd521df5f3369675d61 (patch) | |
tree | 06ced1f9d7ef84f6df469881fb417385c0a3bc6e /lisp/progmodes/cc-langs.el | |
parent | f11779f01b229235feb4ce0c1b20a8c2fabfbb88 (diff) | |
download | emacs-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.el | 4 |
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 |