Commit a4ee83cc authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

(c-forward-<>-arglist-recur): Fix an infinite recursion.

parent 22c3ce97
......@@ -2,6 +2,7 @@
 
* progmodes/cc-engine.el (c-forward-<>-arglist-recur): Correct the
indentation.
(c-forward-<>-arglist-recur): Fix an infinite recursion.
 
2010-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
 
......
......@@ -5479,16 +5479,14 @@ comment at the start of cc-engine.el for more info."
(setq pos (point))
(or
;; Note: These regexps exploit the match order in \| so
;; that "<>" is matched by "<" rather than "[^>:-]>".
(c-syntactic-re-search-forward
;; Stop on ',', '|', '&', '+' and '-' to catch
;; common binary operators that could be between
;; two comparison expressions "a<b" and "c>d".
"[<;{},|+&-]\\|[>)]"
nil t t)
t))
;; Note: These regexps exploit the match order in \| so
;; that "<>" is matched by "<" rather than "[^>:-]>".
(c-syntactic-re-search-forward
;; Stop on ',', '|', '&', '+' and '-' to catch
;; common binary operators that could be between
;; two comparison expressions "a<b" and "c>d".
"[<;{},|+&-]\\|[>)]"
nil t t))
(cond
((eq (char-before) ?>)
......
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