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

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

bug#20383: 25.0.50; c-mode: incorrect fontification of function argument


From: Dima Kogan
Subject: bug#20383: 25.0.50; c-mode: incorrect fontification of function arguments
Date: Mon, 20 Apr 2015 09:34:16 -0700

Hi. This is very similar to

 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19669

but with different input.

I'm running an emacs built from 65ac8bc (master branch as of 2015/4/18)

Recipe:

1. emacs -nw -Q tst.c (open attached source)
2. C-n C-o //         (navigate to next line, start a new comment)

At this point, the buffer looks like the attached image. Note that at
step 2, the coloration of the 3rd and 5th arguments changed. This is
wrong. In normal use I see this popping up in response to various
inputs, not just starting a comment in some arbitrary place.

Thanks

// X xxx xxx x 2xx-xxxxx xxxx  xxx xxxx X xx, X xxx'x
void xxxx_xxxxxx_xxx_xxxxx( // xxxxx, xxxxxx
                            // xxxxxxx xxxxx xx xxxxx
                            struct xxxxx_x* x,

                            // xxxxxx
                            long xxxx_xxxx,

                            // xxxxxxxxx xxxx xxxxxx xx xxxxxxx
                            T    (*x )(const struct xxxxx_x* x),
                            void (*x) (      struct xxxxx_x* xxxxxx,
                                       const struct xxxxx_x* x),
                            T (*x_xxx_x) (      struct xxxxx_x* xxxxxx,
                                          const struct xxxxx_x* x),
                            void (*Xx)(      struct xxxxx_x* xxxxxx,
                                       const struct xxxxx_x* x))
{
}

Attachment: bad_fontification.png
Description: PNG image


reply via email to

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