changeset 15660:5cee4182c51f

Make sure font-lock-match-c++-style-declaration-item-and-skip-to-next only skips commas.
author Simon Marshall <simon@gnu.org>
date Sat, 13 Jul 1996 11:12:25 +0000
parents 6e4665e4f807
children 96debed5fb36
files lisp/font-lock.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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