summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2016-08-17 19:37:19 +0000
committerAlan Mackenzie <acm@muc.de>2016-08-17 19:37:19 +0000
commit0434f7609a0239206394280dc3e06854661be949 (patch)
tree5c9f91ebc220ab6a791378c61cbcbb04d754f87a
parent5ee08b3d6d59520abd138b559fdcb8e79386f7a8 (diff)
Fontify constructs following "::" in C++ argument lists correctly - part 2.
This fixes bug #24246. * lisp/progmodes/cc-engine.el (c-find-decl-prefix-search): Put a `save-match-data' around the new `looking-at' introduced by the previous CC Mode patch this evening.
-rw-r--r--lisp/progmodes/cc-engine.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index 1310ef77f7..8e8e4e490b 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -5172,7 +5172,8 @@ comment at the start of cc-engine.el for more info."
(match-string 1)
(save-excursion
(goto-char (match-beginning 1))
- (looking-at c-opt-identifier-concat-key)))
+ (save-match-data
+ (looking-at c-opt-identifier-concat-key))))
;; Found, e.g., "::" in C++
t)
((and (match-string 1)