Subject: bug#7580: closed (Re: bug#7580: [PATCH] cc-mode bitfield fontification bug)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 03 Oct 2011 20:37:01 +0000

Your bug report

#7580: [PATCH] cc-mode bitfield fontification bug

which was filed against the emacs,cc-mode package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
7580: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7580
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#7580: [PATCH] cc-mode bitfield fontification bug
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Mon, 03 Oct 2011 16:35:10 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.1

I see this in 23.3 but not in the current trunk, so it seems to have
been fixed.

Subject: [PATCH] cc-mode bitfield fontification bug
From: Daniel Colascione <[email-masked]>
To: [email-masked]
Date: Tue, 07 Dec 2010 04:34:54 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

struct test
{
   /* Both should be fontified as bitfields; currently, only the former
is */
   int bf1:5;
   unsigned bf2:5;
};

@@ -5575,7 +5656,9 @@
 		  ;; a valid label.  Otherwise the last one probably is the
 		  ;; declared identifier and we should back up to the previous
 		  ;; type, providing it isn't a cast.
-		  (if (eq (char-after) ?:)
+		  (if (and (eq (char-after) ?:)
+                           (not (and (eq backup-at-type 'prefix)
+                                     (eq at-type 'maybe))))
 		      ;; If we've found a specifier keyword then it's a
 		      ;; declaration regardless.
 		      (throw 'at-decl-or-cast (eq at-decl-or-cast t))