GNU bug report logs - #7580
[PATCH] cc-mode bitfield fontification bug

Previous Next

Packages: cc-mode, emacs;

Reported by: Daniel Colascione <dan.colascione <at> gmail.com>

Date: Tue, 7 Dec 2010 12:30:03 UTC

Severity: normal

Tags: patch

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#7580: closed ([PATCH] cc-mode bitfield fontification bug)
Date: Mon, 03 Oct 2011 20:37:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 03 Oct 2011 16:35:10 -0400
with message-id <i4sjn9ak5d.fsf <at> fencepost.gnu.org>
and subject line Re: bug#7580: [PATCH] cc-mode bitfield fontification bug
has caused the debbugs.gnu.org bug report #7580,
regarding [PATCH] cc-mode bitfield fontification bug
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
7580: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7580
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Daniel Colascione <dan.colascione <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] cc-mode bitfield fontification bug
Date: Tue, 07 Dec 2010 04:34:54 -0800
[Message part 3 (text/plain, inline)]
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))

[signature.asc (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 7580-done <at> debbugs.gnu.org
Subject: Re: bug#7580: [PATCH] cc-mode bitfield fontification bug
Date: Mon, 03 Oct 2011 16:35:10 -0400
Version: 24.1

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


This bug report was last modified 13 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.