Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: byo on October 06, 2005, 11:38:07 pm

Title: Adding new token into lexer
Post by: byo on October 06, 2005, 11:38:07 pm
Hi
wxSmith plugin uses special kind of comments - everything what's between //(* and //*) (including not commented content) is wxSmith's automatically generated code. Is there any way to add support for this inside cpp lexer ?
Title: Re: Adding new token into lexer
Post by: mandrav on October 06, 2005, 11:52:19 pm
Not with a lexer file. You 'd have to edit the scintilla C++ lexer. It's located in sdk/wxscintilla/src/scintilla/src/LexCPP.cxx. From what I can tell, it would be easy to add support for it...