]> code.delx.au - gnu-emacs/blobdiff - lisp/font-lock.el
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-28
[gnu-emacs] / lisp / font-lock.el
index 2a050c9637ed2963edf61b9c5fdb2e311b18c602..af1c7619e380e895e5511d5da8aa09fbbe1e868a 100644 (file)
@@ -1895,7 +1895,8 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
            ;; 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)))))
 \f
 ;; Lisp.