# HG changeset patch # User Kenichi Handa # Date 1054817924 0 # Node ID 3bd06346cb4bc712a1ecdedd669de1b6dc065e5a # Parent 3bb3cb011f1eab3de1f10fc79346b4f84b1650f8 (font-lock-match-c-style-declaration-item-and-skip-to-next): Check (match-end 2) before goto there. diff -r 3bb3cb011f1e -r 3bd06346cb4b lisp/font-lock.el --- 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.