Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: thomas on November 26, 2008, 05:05:59 pm

Title: STL/TR1 lexer^
Post by: thomas on November 26, 2008, 05:05:59 pm
I've modified the C++ lexer to include most of the STL and C++0x TR1 as user keywords. I have also added a few gcc specific keywords as well as builtin intrinsics and attribute names, since these are easy to mistype and hard to read. Basically I've highlighted most everything that I've mistyped more than twice in my life...
I'm not sure about how useful it really is (considering that it bloats up the lexer quite a bit), nor am I sure about what colour scheme to use etc., therefore it isn't committed to svn -- instead play with the attached file for now, and tell me what you think.

[attachment deleted by admin]
Title: Re: STL/TR1 lexer^
Post by: mmkider on November 26, 2008, 05:09:22 pm
I've modified the C++ lexer to include most of the STL and C++0x TR1 as user keywords. I have also added a few gcc specific keywords as well as builtin intrinsics and attribute names, since these are easy to mistype and hard to read. Basically I've highlighted most everything that I've mistyped more than twice in my life...
I'm not sure about how useful it really is (considering that it bloats up the lexer quite a bit), nor am I sure about what colour scheme to use etc., therefore it isn't committed to svn -- instead play with the attached file for now, and tell me what you think.

good job 

 :D :D :D :D :D :D
Title: Re: STL/TR1 lexer^
Post by: MortenMacFly on December 01, 2008, 03:03:45 pm
play with the attached file for now, and tell me what you think.
I thinks it's OK to put it to SVN. Looks good (although in 98% of my code I see not difference as I am not using those keywords... ;-))