[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 9664ee1: C++ Mode: Don't confuse the pointer operator -> with t
From: |
Alan Mackenzie |
Subject: |
emacs-27 9664ee1: C++ Mode: Don't confuse the pointer operator -> with the type indicating -> |
Date: |
Sun, 15 Aug 2021 15:46:36 -0400 (EDT) |
branch: emacs-27
commit 9664ee182c3af476c1532354a867a421f9fbacf1
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
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.
---
lisp/progmodes/cc-engine.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 9cba87f..f5e4c4b 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)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 9664ee1: C++ Mode: Don't confuse the pointer operator -> with the type indicating ->,
Alan Mackenzie <=