aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-07-04 09:17:34 +0000
committerGerd Moellmann2001-07-04 09:17:34 +0000
commitb5e2c7a755cb352e9ac47095073e2c9eaa63c02b (patch)
tree2502b2364086f977d870ae5dcf04a907c5939831
parentc347a1c319586ae6de39bdc28fb5c33af3384885 (diff)
downloademacs-b5e2c7a755cb352e9ac47095073e2c9eaa63c02b.tar.gz
emacs-b5e2c7a755cb352e9ac47095073e2c9eaa63c02b.zip
(c-font-lock-keywords-3): When matching something
like `struct X Y', finish with point after Y.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/font-lock.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aa7ba593558..6cff9a10269 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-07-04 Gerd Moellmann <gerd@gnu.org>
2
3 * font-lock.el (c-font-lock-keywords-3): When matching something
4 like `struct X Y', finish with point after Y.
5
12001-07-03 Eli Zaretskii <eliz@is.elta.co.il> 62001-07-03 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * find-file.el (ff-find-the-other-file): Use file-name-nondirectory 8 * find-file.el (ff-find-the-other-file): Use file-name-nondirectory
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index d1315fbc794..424db62a064 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -2372,7 +2372,11 @@ See also `c-font-lock-extra-types'.")
2372 (list 1 'font-lock-keyword-face) 2372 (list 1 'font-lock-keyword-face)
2373 (list ,(+ c-type-specs-depth 2) 'font-lock-type-face nil t) 2373 (list ,(+ c-type-specs-depth 2) 'font-lock-type-face nil t)
2374 (list 'font-lock-match-c-style-declaration-item-and-skip-to-next 2374 (list 'font-lock-match-c-style-declaration-item-and-skip-to-next
2375 nil nil 2375 nil
2376 ;; Finish with point after the variable name if
2377 ;; there is one.
2378 `(if (match-end 2)
2379 (goto-char (match-end 2)))
2376 ;; Fontify as a variable or function name. 2380 ;; Fontify as a variable or function name.
2377 '(1 (if (match-beginning 2) 2381 '(1 (if (match-beginning 2)
2378 font-lock-function-name-face 2382 font-lock-function-name-face