# HG changeset patch # User Simon Marshall # Date 837256345 0 # Node ID 5cee4182c51fe57e9aeac3d4ada808d399fe2034 # Parent 6e4665e4f80718267f623256397faa03060c8217 Make sure font-lock-match-c++-style-declaration-item-and-skip-to-next only skips commas. diff -r 6e4665e4f807 -r 5cee4182c51f lisp/font-lock.el --- a/lisp/font-lock.el Sat Jul 13 01:03:02 1996 +0000 +++ b/lisp/font-lock.el Sat Jul 13 11:12:25 1996 +0000 @@ -1568,9 +1568,9 @@ (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