From: Simon Marshall Date: Sat, 13 Jul 1996 11:12:25 +0000 (+0000) Subject: Make sure font-lock-match-c++-style-declaration-item-and-skip-to-next only skips... X-Git-Tag: emacs-19.34~202 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=56a2f57a0d5ef7571ab523db10b187c3db65986c;p=emacs.git Make sure font-lock-match-c++-style-declaration-item-and-skip-to-next only skips commas. --- diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 2e840bfc7d1..ac9978c1718 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1568,9 +1568,9 @@ the face is also set; its value is the face name." (narrow-to-region (point-min) limit) (goto-char (match-end 1)) ;; Move over any item value, etc., to the next item. - (while (not (looking-at "[ \t]*\\(,\\|$\\)")) + (while (not (looking-at "[ \t]*\\(\\(,\\)\\|;\\|$\\)")) (goto-char (or (scan-sexps (point) 1) (point-max)))) - (goto-char (match-end 0))) + (goto-char (match-end 2))) (error t))))) (let ((c-keywords