summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorSimon Marshall <simon@gnu.org>1996-07-13 11:12:25 +0000
committerSimon Marshall <simon@gnu.org>1996-07-13 11:12:25 +0000
commit751d1ffd18cbc5c028bef67c60c295d6f13050bc (patch)
tree3df5cc80b81b9e324e6f7d434a258ef27f8046d5 /lisp/font-lock.el
parentdad89f36e94ef68a67d0057fe497b29e21807ce9 (diff)
downloademacs-751d1ffd18cbc5c028bef67c60c295d6f13050bc.tar.gz
Make sure font-lock-match-c++-style-declaration-item-and-skip-to-next only skips commas.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el4
1 files 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