[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 092e0a0: Fix "Invalid search bound (wrong side of p
From: |
Alan Mackenzie |
Subject: |
[Emacs-diffs] master 092e0a0: Fix "Invalid search bound (wrong side of point)" in fontification. |
Date: |
Mon, 10 Aug 2015 16:56:25 +0000 |
branch: master
commit 092e0a0c51a1d71236f28ec186963f1ab24f8efb
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>
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.
---
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 ad564f7..0f9b2d3 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."
(looking-at "{"))
(c-safe (c-forward-sexp) t) ; over { .... }
t)
+ (< (point) limit)
;; FIXME: Should look for c-decl-end markers here;
;; we might go far into the following declarations
;; in e.g. ObjC mode (see e.g. methods-4.m).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 092e0a0: Fix "Invalid search bound (wrong side of point)" in fontification.,
Alan Mackenzie <=