diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-fonts.el | 13 |
2 files changed, 10 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0620164c6dd..920eea268f4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-08-23 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * progmodes/cc-fonts.el (c-font-lock-declarators): Fix infinite | ||
| 4 | loop, bug #18306. The bug was introduced on 2014-08-02. | ||
| 5 | |||
| 1 | 2014-08-21 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-08-21 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * textmodes/texnfo-upd.el (texinfo-specific-section-type): Don't | 8 | * textmodes/texnfo-upd.el (texinfo-specific-section-type): Don't |
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index a107ef01250..ceb86b45fb1 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el | |||
| @@ -1116,14 +1116,11 @@ casts and declarations are fontified. Used on level 2 and higher." | |||
| 1116 | ;; initializing brace lists. | 1116 | ;; initializing brace lists. |
| 1117 | (let (found) | 1117 | (let (found) |
| 1118 | (while | 1118 | (while |
| 1119 | (and (setq found | 1119 | (and (setq found (c-syntactic-re-search-forward |
| 1120 | (c-syntactic-re-search-forward | 1120 | "[;,]\\|\\s)\\|\\'\\|\\(=\\|\\s(\\)" limit t t)) |
| 1121 | "[;,]\\|\\s)\\|\\'\\|\\(=\\|\\s(\\)" limit t t)) | 1121 | (eq (char-before) ?\[) |
| 1122 | (eq (char-before) ?\[)) | 1122 | (c-go-up-list-forward)) |
| 1123 | (backward-char) | 1123 | (setq brackets-after-id t)) |
| 1124 | (c-safe (c-forward-sexp 1)) | ||
| 1125 | (setq found nil) | ||
| 1126 | (setq brackets-after-id t)) | ||
| 1127 | found)) | 1124 | found)) |
| 1128 | 1125 | ||
| 1129 | (setq next-pos (match-beginning 0) | 1126 | (setq next-pos (match-beginning 0) |