]> git.eshelyaron.com Git - emacs.git/commitdiff
(font-lock-match-c-style-declaration-item-and-skip-to-next):
authorKenichi Handa <handa@m17n.org>
Thu, 5 Jun 2003 12:58:44 +0000 (12:58 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 5 Jun 2003 12:58:44 +0000 (12:58 +0000)
Check (match-end 2) before goto there.

lisp/font-lock.el

index 0883a086685f9cdb6117e6bf6727ed2c83bf6c18..f877c12da1bbceacbee73edfc1fdb584c4f2525c 100644 (file)
@@ -2048,7 +2048,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.