[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] support a few of the new features of C++11 in syntax highlig
From: |
Alan Mackenzie |
Subject: |
Re: [PATCH] support a few of the new features of C++11 in syntax highlighting |
Date: |
Sun, 26 Jan 2014 15:21:44 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hello, all.
On Sat, Jan 25, 2014 at 02:34:37PM -0800, Daniel Colascione wrote:
> On 01/25/2014 01:56 PM, Stefan Monnier wrote:
> >> I would advise you to send this to the bug list.
> >> Although a similar (?) patch has been there for a year.
> >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13871
> >> So maybe send it as followup to that if it seems appropriate to you.
> > Agreed. Of course, we can't install this right now since we're in
> > feature freeze, but if someone could deal with this soon after we re-open
> > the trunk, that would be helpful,
> I have a much older C++11 (from back when it was called C++0x) patch (it
> should be in the archives somewhere) that supports "auto", attributes,
> the ">>" template-closing syntax, and a few of C++'s contextual
> keywords, like "override". I should update it after the feature freeze.
> A big challenge is making uniform initialization work properly; I'd love
> Alan's thoughts on the best way to approach that subject. I think we
> also need a new indentation type for lambdas.
I've had enhancements for some C++11 features integrated into CC Mode at
SourceForge for some while, but I haven't yet pushed them to the
repository there (with one exception).
These features are:
(i) ">>" as double template ender (already at SourceForge);
(ii) "auto foo = <expression>;";
(iii) "decltype (foo)" as a type;
(iv) "auto foo (<args>) -> <type> { ..... }".
Daniel, in the end I didn't use the code in your patch, though the test
file was handy indeed.
I'd been hoping to implement more C++11 features before releasing all
the above, but I'm not getting much done. I don't have enough time to
spend on CC Mode, and I'm largely bogged down with bug fixes at the
moment. If somebody were willing to spend the time to learn how CC Mode
works, then implement more of C++11's features, I'd be most grateful for
the help.
--
Alan Mackenzie (Nuremberg, Germany).