[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix for C++ class label preventing fontification
From: |
Marshall, Simon |
Subject: |
Fix for C++ class label preventing fontification |
Date: |
Tue, 12 Dec 2006 11:04:53 -0000 |
The below patch fixes a previous change I made (to fix switch label
fontification) that causes missing fontification of a member name declared
directly following a label in a C++ class declaration.
2006-12-12 Simon Marshall <address@hidden>
* progmodes/cc-fonts.el (c-font-lock-declarations): Fix previous
change.
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/cc-fonts.el,v
retrieving revision 1.18
diff -c -r1.18 cc-fonts.el
*** cc-fonts.el 15 Nov 2006 16:31:03 -0000 1.18
--- cc-fonts.el 12 Dec 2006 10:55:10 -0000
***************
*** 1179,1185 ****
;; The below code attempts to fontify the case constants in
;; c-label-face-name, but it cannot catch every case [sic].
;; And do we want to fontify case constants anyway?
! nil
;;; (when (c-forward-label t match-pos nil)
;;; ;; Can't use `c-fontify-types-and-refs' here since we
;;; ;; should use the label face.
--- 1179,1185 ----
;; The below code attempts to fontify the case constants in
;; c-label-face-name, but it cannot catch every case [sic].
;; And do we want to fontify case constants anyway?
! (c-forward-label t match-pos nil)
;;; (when (c-forward-label t match-pos nil)
;;; ;; Can't use `c-fontify-types-and-refs' here since we
;;; ;; should use the label face.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fix for C++ class label preventing fontification,
Marshall, Simon <=