bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chong Yidong
Subject: bug#7580: [PATCH] cc-mode bitfield fontification bug
Date: Fri, 21 Jan 2011 22:06:26 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Alan,

Could you please review this patch?  Thanks!


Daniel Colascione <address@hidden> writes:

> 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))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]