# HG changeset patch # User Gerd Moellmann # Date 994238229 0 # Node ID 52c02becf8c36d8aa0d293803095248a84ade11f # Parent eea60db9b63c1cfd1e4837a8ab0a6c3ccdd85fa0 (c-font-lock-keywords-3): When matching something like `struct X Y', finish with point after Y. diff -r eea60db9b63c -r 52c02becf8c3 lisp/font-lock.el --- a/lisp/font-lock.el Wed Jul 04 07:42:36 2001 +0000 +++ b/lisp/font-lock.el Wed Jul 04 09:17:09 2001 +0000 @@ -2372,7 +2372,11 @@ (list 1 'font-lock-keyword-face) (list ,(+ c-type-specs-depth 2) 'font-lock-type-face nil t) (list 'font-lock-match-c-style-declaration-item-and-skip-to-next - nil nil + nil + ;; Finish with point after the variable name if + ;; there is one. + `(if (match-end 2) + (goto-char (match-end 2))) ;; Fontify as a variable or function name. '(1 (if (match-beginning 2) font-lock-function-name-face