diff options
| author | Alan Mackenzie | 2015-08-10 16:54:35 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2015-08-10 16:54:35 +0000 |
| commit | 092e0a0c51a1d71236f28ec186963f1ab24f8efb (patch) | |
| tree | 72e61fb4f7a403d589b5de2bb020a63344d26165 | |
| parent | a9bb9d8fc22417d1fafd8001d89a91c33c8b39ec (diff) | |
| download | emacs-092e0a0c51a1d71236f28ec186963f1ab24f8efb.tar.gz emacs-092e0a0c51a1d71236f28ec186963f1ab24f8efb.zip | |
Fix "Invalid search bound (wrong side of point)" in fontification.
progmodes/cc-fonts.el (c-font-lock-declarators): After skipping an
initialization expression, check point is not beyond the fontification
limit.
| -rw-r--r-- | lisp/progmodes/cc-fonts.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index ad564f7c3df..0f9b2d3c9c1 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el | |||
| @@ -1140,6 +1140,7 @@ casts and declarations are fontified. Used on level 2 and higher." | |||
| 1140 | (looking-at "{")) | 1140 | (looking-at "{")) |
| 1141 | (c-safe (c-forward-sexp) t) ; over { .... } | 1141 | (c-safe (c-forward-sexp) t) ; over { .... } |
| 1142 | t) | 1142 | t) |
| 1143 | (< (point) limit) | ||
| 1143 | ;; FIXME: Should look for c-decl-end markers here; | 1144 | ;; FIXME: Should look for c-decl-end markers here; |
| 1144 | ;; we might go far into the following declarations | 1145 | ;; we might go far into the following declarations |
| 1145 | ;; in e.g. ObjC mode (see e.g. methods-4.m). | 1146 | ;; in e.g. ObjC mode (see e.g. methods-4.m). |