]> code.delx.au - gnu-emacs/blobdiff - lisp/font-lock.el
Merge from emacs--devo--0
[gnu-emacs] / lisp / font-lock.el
index dc350ce146bf73fcc817a072ac806891dc41afb2..dab7c9b3af4f94cd17343d816db4e7f85b0d12ad 100644 (file)
@@ -2121,7 +2121,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)))))
 
 ;; C preprocessor(cpp) is used outside of C, C++ and Objective-C source file.