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.
This commit is contained in:
parent
b3aec9ee48
commit
9664ee182c
1 changed files with 1 additions and 1 deletions
|
@ -11993,7 +11993,7 @@ comment at the start of cc-engine.el for more info."
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(while
|
(while
|
||||||
(progn
|
(progn
|
||||||
(c-syntactic-skip-backward "^;=}>" closest-lim t)
|
(c-syntactic-skip-backward "^;=,}>" closest-lim t)
|
||||||
(and (eq (char-before) ?>)
|
(and (eq (char-before) ?>)
|
||||||
(c-backward-token-2)
|
(c-backward-token-2)
|
||||||
(not (looking-at c-haskell-op-re)))))
|
(not (looking-at c-haskell-op-re)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue