changeset 89464:3bd06346cb4b

(font-lock-match-c-style-declaration-item-and-skip-to-next): Check (match-end 2) before goto there.
author Kenichi Handa <handa@m17n.org>
date Thu, 05 Jun 2003 12:58:44 +0000
parents 3bb3cb011f1e
children 1a44cedd7a0b
files lisp/font-lock.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Thu Jun 05 12:58:16 2003 +0000
+++ b/lisp/font-lock.el	Thu Jun 05 12:58:44 2003 +0000
@@ -2048,7 +2048,8 @@
 	    ;; Move over any item value, etc., to the next item.
 	    (while (not (looking-at "[ \t\n]*\\(\\(,\\)\\|;\\|\\'\\)"))
 	      (goto-char (or (scan-sexps (point) 1) (point-max))))
-	    (goto-char (match-end 2)))
+	    (if (match-end 2)
+		(goto-char (match-end 2))))
 	(error t)))))
 
 ;; Lisp.