all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Jordan Saunders <jmsaunders@gmail.com>, 1953@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: bug#1953: Syntax Highlighting Problem in c++-mode
Date: Tue, 20 Jan 2009 12:13:47 +0000	[thread overview]
Message-ID: <20090120121347.GB1995@muc.de> (raw)
In-Reply-To: <69c9159d0901181928u289f3a66r8b5309c7b963120b@mail.gmail.com>

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	other threads:[~2009-01-20 12:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19  3:28 bug#1953: Syntax Highlighting Problem in c++-mode Jordan Saunders
2009-01-20 12:13 ` Alan Mackenzie [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-19 15:18 Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090120121347.GB1995@muc.de \
    --to=acm@muc.de \
    --cc=1953@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=jmsaunders@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.