summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2021-08-15 19:43:58 +0000
committerAlan Mackenzie <acm@muc.de>2021-08-15 19:43:58 +0000
commit9664ee182c3af476c1532354a867a421f9fbacf1 (patch)
treefcc3a1d8f6b78dc4fb9571520a3efe13296597b5
parentb3aec9ee483c82aa23e604ea61ce0777e9ef2ebd (diff)
downloademacs-9664ee182c3af476c1532354a867a421f9fbacf1.tar.gz
C++ Mode: Don't confuse the pointer operator -> with the type indicating ->
This fixes bug #47468. * lisp/progmodes/cc-engine.el (c-looking-at-inexpr-block): While searching backwards for "->" which is a type indicating operator, disallow also commas.
-rw-r--r--lisp/progmodes/cc-engine.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 9cba87f4d91..f5e4c4b9928 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -11993,7 +11993,7 @@ comment at the start of cc-engine.el for more info."
(save-excursion
(while
(progn
- (c-syntactic-skip-backward "^;=}>" closest-lim t)
+ (c-syntactic-skip-backward "^;=,}>" closest-lim t)
(and (eq (char-before) ?>)
(c-backward-token-2)
(not (looking-at c-haskell-op-re)))))