diff options
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 18 |
2 files changed, 9 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 70052409d66..7731c6686b7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * progmodes/cc-engine.el (c-forward-<>-arglist-recur): Correct the | 3 | * progmodes/cc-engine.el (c-forward-<>-arglist-recur): Correct the |
| 4 | indentation. | 4 | indentation. |
| 5 | (c-forward-<>-arglist-recur): Fix an infinite recursion. | ||
| 5 | 6 | ||
| 6 | 2010-09-15 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2010-09-15 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 8 | ||
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 195d4f6cf71..2a24bf1ce90 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -5479,16 +5479,14 @@ comment at the start of cc-engine.el for more info." | |||
| 5479 | 5479 | ||
| 5480 | (setq pos (point)) | 5480 | (setq pos (point)) |
| 5481 | 5481 | ||
| 5482 | (or | 5482 | ;; Note: These regexps exploit the match order in \| so |
| 5483 | ;; Note: These regexps exploit the match order in \| so | 5483 | ;; that "<>" is matched by "<" rather than "[^>:-]>". |
| 5484 | ;; that "<>" is matched by "<" rather than "[^>:-]>". | 5484 | (c-syntactic-re-search-forward |
| 5485 | (c-syntactic-re-search-forward | 5485 | ;; Stop on ',', '|', '&', '+' and '-' to catch |
| 5486 | ;; Stop on ',', '|', '&', '+' and '-' to catch | 5486 | ;; common binary operators that could be between |
| 5487 | ;; common binary operators that could be between | 5487 | ;; two comparison expressions "a<b" and "c>d". |
| 5488 | ;; two comparison expressions "a<b" and "c>d". | 5488 | "[<;{},|+&-]\\|[>)]" |
| 5489 | "[<;{},|+&-]\\|[>)]" | 5489 | nil t t)) |
| 5490 | nil t t) | ||
| 5491 | t)) | ||
| 5492 | 5490 | ||
| 5493 | (cond | 5491 | (cond |
| 5494 | ((eq (char-before) ?>) | 5492 | ((eq (char-before) ?>) |