diff options
author | Alan Mackenzie <acm@muc.de> | 2022-04-10 12:20:39 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2022-04-10 12:20:39 +0000 |
commit | 02b521ad7456ae6834b0399ec80f56ee8ca09522 (patch) | |
tree | 0465ffa03e68217391351eeea879698d96a2ed2f | |
parent | cca47ae555bfddf87b4871988555738c335f8457 (diff) | |
download | emacs-02b521ad7456ae6834b0399ec80f56ee8ca09522.tar.gz |
CC Mode: Fix unwanted fontification of function call as function declaration
This happens when the enclosing function's return type is a struct, etc. This
fixes bug #54743;
* lisp/progmodes/cc-engine.el (c-update-brace-stack): Replace "(" by ")" in a
`member' call.
-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 ebc1ef43010..b2fa9e06911 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -6139,7 +6139,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) |