From 56a2f57a0d5ef7571ab523db10b187c3db65986c Mon Sep 17 00:00:00 2001 From: Simon Marshall Date: Sat, 13 Jul 1996 11:12:25 +0000 Subject: [PATCH] Make sure font-lock-match-c++-style-declaration-item-and-skip-to-next only skips commas. --- lisp/font-lock.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2