Code::Blocks Forums
User forums => Help => Topic started by: MortenMacFly on March 02, 2006, 01:24:07 pm
-
Dear all,
I'm trying to update the lexer for Matlab I've created serveral time ago. I know that "even more time ago" (tm) mandrav pointed me to a place where I could read about the format of lexer files. Unfortunately I don't remember this reference and cannot find it. Anybody out there who knows where this was (in the forums?!)?
With regards, Morten.
-
Hello,
May be this one (http://forums.codeblocks.org/index.php?topic=519.0)?
Best wishes,
Michael
-
Someone has copied it to the wiki (I think it was Takeshi):
here (http://wiki.codeblocks.org/index.php?title=Creating_a_custom_lexer_for_Code::Blocks_editor)
-
here (http://wiki.codeblocks.org/index.php?title=Creating_a_custom_lexer_for_Code::Blocks_editor)
Thanks! That's the one I ment (I completely forgot we have a WiKi... :oops:). But the forum post was helpful, too.
And: Good news! I'm nearly finished, there is only one question left. Within the MASM lexer there are several groups of keywords. The third group is "Registers". How is it handeled that the index "2" of the keyword groups is assigned to the type "Register" that has the scintilla index "8" defined? I see no relation between that. That's the last thing I still do not understand... :(
Morten.
-
How is it handeled that the index "2" of the keyword groups is assigned to the type "Register" that has the scintilla index "8" defined?
Nevermind, I read the WiKi again and there it was:
What each set does and which sets are used by a lexer, is defined by the lexer itself.
If you open LexCPP.cxx (from the scintilla sources), you will find the following: [...]
Sorry for the noise.
Morten.