GNU bug report logs - #24246
25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument.

Previous Next

Packages: cc-mode, emacs;

Reported by: Arash <pbqbqp <at> gmail.com>

Date: Tue, 16 Aug 2016 20:55:02 UTC

Severity: minor

Found in version 25.0.95

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alan Mackenzie <acm <at> muc.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#24246: closed (25.0.95; (c++-mode) custom/extra types not
 getting highlighted (as a type) after a wrapper::type argument.)
Date: Thu, 18 Aug 2016 09:51:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 18 Aug 2016 09:49:33 +0000
with message-id <20160818094932.GB3030 <at> acm.fritz.box>
and subject line Re: bug#24246: 25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument.
has caused the debbugs.gnu.org bug report #24246,
regarding 25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
24246: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24246
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Arash <pbqbqp <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.95;
 (c++-mode) custom/extra types not getting highlighted (as a type)
 after a wrapper::type argument.
Date: Wed, 17 Aug 2016 01:24:17 +0430
$ 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);


[Message part 3 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: Arash <pbqbqp <at> gmail.com>, 24246-done <at> debbugs.gnu.org
Subject: Re: bug#24246: 25.0.95; (c++-mode) custom/extra types not getting
 highlighted (as a type) after a wrapper::type argument.
Date: Thu, 18 Aug 2016 09:49:33 +0000
Hello, Arash.

On Thu, Aug 18, 2016 at 12:33:33AM +0430, Arash wrote:
> Thanks, fontification for function decs/defs got fixed but the problem
> still exists in e.g. init step of a for loop...

> for (wrapper::type a = 0, int32 b = 0; ; ) {
>     ...
> }

This is actually a different bug - if you delete the "::", the problem
is still there.  I've submitted bug #24258 for this problem, and I'm
working on it.

I'm closing the original bug now, since it appears to be fixed.

-- 
Alan Mackenzie (Nuremberg, Germany).


This bug report was last modified 8 years and 310 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.