(c-font-lock-keywords-3): When matching something

like `struct X Y', finish with point after Y.
This commit is contained in:
Gerd Moellmann 2001-07-04 09:17:34 +00:00
parent c347a1c319
commit b5e2c7a755
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-07-04 Gerd Moellmann <gerd@gnu.org>
* font-lock.el (c-font-lock-keywords-3): When matching something
like `struct X Y', finish with point after Y.
2001-07-03 Eli Zaretskii <eliz@is.elta.co.il>
* find-file.el (ff-find-the-other-file): Use file-name-nondirectory

View file

@ -2372,7 +2372,11 @@ See also `c-font-lock-extra-types'.")
(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