News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

STL/TR1 lexer^

Started by thomas, November 26, 2008, 05:05:59 PM

Previous topic - Next topic

thomas

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]
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mmkider

Quote from: 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.

good job 

:D :D :D :D :D :D

MortenMacFly

Quote from: thomas on November 26, 2008, 05:05:59 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... ;-))
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]