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-engine.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-engine.el')
-rw-r--r-- | lisp/progmodes/cc-engine.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index db1f46621da..862652e2e5f 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -6135,7 +6135,7 @@ comment at the start of cc-engine.el for more info." (setq s (cons -1 (cdr s)))) ((and (equal match ",") (eq (car s) -1))) ; at "," in "class foo : bar, ..." - ((member match '(";" "," ")")) + ((member match '(";" "*" "," "(")) (when (and s (cdr s) (<= (car s) 0)) (setq s (cdr s)))) ((c-keyword-member kwd-sym 'c-flat-decl-block-kwds) |