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

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

bug#1953: Syntax Highlighting Problem in c++-mode


From: Alan Mackenzie
Subject: bug#1953: Syntax Highlighting Problem in c++-mode
Date: Tue, 20 Jan 2009 12:13:47 +0000
User-agent: Mutt/1.5.9i

Hi, Jordan,

On Sun, Jan 18, 2009 at 10:28:04PM -0500, Jordan Saunders wrote:
> Given the following circumstance in c++-mode:

> class blah
> {
>     blah(int) {}
> };

> blah::blah is not recognized by the syntax highlighter as a constructor and
> the syntax highlighting is incorrect.

I'm not quite sure what you mean here.  When a function is used (as
opposed to being declared), it is not given a special font; when it is
declared, it gets font-lock-function-name-face.  Class members, including
its constructors, count as "functions" here.

> If we give the first parameter an actual name (i.e. int a, for
> example), it is recognized and things are peachy.

Would you please supply an actual short example of what is going wrong.
C++ is an unusually difficult and complicated language to parse, and
there are certainly some bugs in C++ Mode at the moment.  It would be
nice to fix them.

> Thank you.

Thanks for taking the trouble to report the bug.

-- 
Alan Mackenzie (Nuremberg, Germany).






reply via email to

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