For those who would be interested in writing their own lexer, you can find some documentation in the sources of Scintilla shipped with Code::Blocks.
The SetIndex values are defined in a table at the end of the .cpp files which handle coloration. These files are in src/sdk/wxscintilla/src/scintilla/lexers/Lex*.cxx.
For the asm files, this table is used :
static const char * const asmWordListDesc[] = {
"CPU instructions",
"FPU instructions",
"Registers",
"Directives",
"Directive operands",
"Extended instructions",
0
};
The Index number (the "magic" number I was asking about in post #0) must follow this table :
0 for CPU Instructions
1 for FPU
2 for Registers
etc...
Quite simple, when you know where the informations are. :D
At the moment, I have done modifications in these files :
Makefile.am replace in wxscintilla/
Makefile replace in wxscintilla/build/
wxscintilla.h replace in wxscintilla/include/wx/
Lex68k.cxx add in wxscintilla/src/scintilla/lexers/
lexer_68k.xml add in CBsrc/src/sdk/ressources/lexers
lexer_68l.sample add in CBsrc/src/sdk/ressources/lexers
Scintilla.iface replace in wxscintilla/src/scintilla/include
SciLexer.h replace in wxscintilla/src/scintilla/include
I don't know if there is other things to do.