[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7580: [PATCH] cc-mode bitfield fontification bug
From: |
Daniel Colascione |
Subject: |
bug#7580: [PATCH] cc-mode bitfield fontification bug |
Date: |
Tue, 07 Dec 2010 04:34:54 -0800 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
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
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#7580: [PATCH] cc-mode bitfield fontification bug,
Daniel Colascione <=