Mercurial > emacs
changeset 38282:52c02becf8c3
(c-font-lock-keywords-3): When matching something
like `struct X Y', finish with point after Y.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 04 Jul 2001 09:17:09 +0000 |
parents | eea60db9b63c |
children | 0940bb4c84f4 |
files | lisp/font-lock.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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