Commit 037aabba authored by Glenn Morris's avatar Glenn Morris
Browse files

Merge from origin/emacs-26

2075864c (origin/emacs-26) CC Mode: stop extra parens on expression ca...
parents fd1afe2d 2075864c
Pipeline #252 failed with stage
in 6 minutes and 17 seconds
......@@ -1250,12 +1250,14 @@ casts and declarations are fontified. Used on level 2 and higher."
(c-put-char-property (1- match-pos)
'c-type 'c-decl-arg-start)
(cons 'decl nil))
;; Got an open paren preceded by an arith operator.
;; Got (an) open paren(s) preceded by an arith operator.
((and (eq (char-before match-pos) ?\()
(goto-char match-pos)
(and (zerop (c-backward-token-2 2))
(looking-at c-arithmetic-op-regexp))))
(progn (c-backward-token-2)
(eq (char-after) ?\()))
(looking-at c-arithmetic-op-regexp)))
(cons nil nil))
;; In a C++ member initialization list.
((and (eq (char-before match-pos) ?,)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment