(c-forward-<>-arglist-recur): Fix an infinite recursion.
This commit is contained in:
parent
22c3ce9729
commit
a4ee83ccd4
2 changed files with 9 additions and 10 deletions
|
|
@ -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) ?>)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue