From: Arash <pbqbqp@gmail.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 24246@debbugs.gnu.org
Subject: bug#24246: 25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument.
Date: Thu, 08 Sep 2016 19:48:12 +0430 [thread overview]
Message-ID: <86eg4us9mz.fsf@gmail.com> (raw)
In-Reply-To: <20160817182121.GB5258@acm.fritz.box> (Alan Mackenzie's message of "Wed, 17 Aug 2016 18:21:21 +0000")
Alan Mackenzie wrote:
> Hello again, Arash.
>
> On Wed, Aug 17, 2016 at 01:24:17AM +0430, Arash wrote:
>> $ emacs -Q ab.cc
>
>> typedef int int32;
>
>> namespace wrapper {
>> enum type { a, b, c };
>> }
>
>> // int32 doesn't get highlighted as a type.
>> void test(wrapper::type A, int32 B);
>
>
>> typedef wrapper::type wtype;
>
>> // here it works, so double colon is the problem?
>> void test(wtype A, int32 B);
>
> Thanks indeed for this bug report, and thanks even more for cutting it
> down to a nice, crisp, manageable file.
>
> The fontification code was not handling "::" in declarations correctly.
> I think I have corrected this, and I have committed it to our master
> branch at savannah.
>
> I see you're on the emacs-25 branch. Could you please patch your Emacs
> with the following patch (the file is in directory .../lisp/progmodes),
> rebuild CC Mode (a single $ emacs -Q -batch -f batch-byte-compile
> .../lisp/progmodes/cc-engine.el should suffice), reload CC Mode into
> your Emacs (or restart Emacs), then try out the new system on your real
> code.
>
> Then please let me know whether the problem has been truly fixed, and
> if not, what is still wrong. If everything is OK, I will close the bug.
Hi Alan. This is a bit late, sry.
// Here, first double colon causes the same problem.
void test(::base::string S, int32 test)
{ }
// and here, even "string" doesn't get highlighted.
void test(::base::string &S)
{ }
prev parent reply other threads:[~2016-09-08 15:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 20:54 bug#24246: 25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument Arash
2016-08-17 12:29 ` Alan Mackenzie
2016-08-17 18:21 ` Alan Mackenzie
2016-08-17 20:03 ` Arash
2016-08-18 9:49 ` Alan Mackenzie
2016-08-23 22:34 ` Michael Welsh Duggan
2016-09-08 15:18 ` Arash [this message]
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=86eg4us9mz.fsf@gmail.com \
--to=pbqbqp@gmail.com \
--cc=24246@debbugs.gnu.org \
--cc=acm@muc.de \
/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.