Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: virtuosonic on May 07, 2011, 07:18:07 am

Title: adding a lexer
Post by: virtuosonic on May 07, 2011, 07:18:07 am
hi, i'm trying to write a lexer for rpm, i writed a scintilla lexer (not finished), CodeBlocks_lexer_properties xml file, and i even see the log saying loading, but i don't see it in the highlight mode menu

Scanning for lexers in C:\Documents and Settings\gabriel\Datos de programa\CodeBlocks/share/codeblocks/lexers/...
Found 0 lexers
Scanning for lexers in C:\Documents and Settings\gabriel\Mis documentos\C++\codeblocks-svn\src\devel/share/codeblocks/lexers/...
Found 44 lexers
Loading lexer_A68k
Loading lexer_ada
Loading lexer_angelscript
Loading lexer_bash
Loading lexer_batch
Loading lexer_bibtex
Loading lexer_caml
Loading lexer_cg
Loading lexer_cpp
Loading lexer_css
Loading lexer_d
Loading lexer_diff
Loading lexer_f77
Loading lexer_fortran
Loading lexer_glsl
Loading lexer_gm
Loading lexer_haskell
Loading lexer_hitasm
Loading lexer_html
Loading lexer_latex
Loading lexer_lisp
Loading lexer_lua
Loading lexer_make
Loading lexer_masm
Loading lexer_matlab
Loading lexer_nsis
Loading lexer_OgreCompositor
Loading lexer_OgreMaterial
Loading lexer_pascal
Loading lexer_perl
Loading lexer_postscript
Loading lexer_prg
Loading lexer_properties
Loading lexer_python
Loading lexer_rc
Loading lexer_rpm
Loading lexer_ruby
Loading lexer_smalltalk
Loading lexer_sql
Loading lexer_squirrel
Loading lexer_vbscript
Loading lexer_verilog
Loading lexer_vhdl
Loading lexer_xml

did i forgot something
Title: Re: adding a lexer
Post by: MortenMacFly on May 07, 2011, 09:40:00 am
did i forgot something
How to tell? You didn't attach the files to this post.
Title: Re: adding a lexer
Post by: virtuosonic on May 07, 2011, 10:29:24 am
here are the files
Title: Re: adding a lexer
Post by: Folco on May 07, 2011, 11:25:33 am
You have some makefiles and Scintilla files to modify when you want your lexer to be compiled with CB.
Title: Re: adding a lexer
Post by: virtuosonic on May 07, 2011, 11:46:52 am
here is my modified project file (only the windows one), don't get disappointed i have even tested this lexer i'm only starting
Title: Re: adding a lexer
Post by: Folco on May 07, 2011, 04:31:18 pm
Ok, I don't use CB to compile itself...
Title: Re: adding a lexer
Post by: virtuosonic on May 08, 2011, 02:45:21 am
when i change the index of the lexer in the xml file to another lexer, like bash (62), it show in the menu
Title: Re: adding a lexer
Post by: Jenna on May 08, 2011, 09:31:45 am
Did you fix wxSCI_LEX_LAST in sdk/wxscintilla/include/wx/wxscintilla.h:497, so your lexers index is below or equal it ?
Title: Re: adding a lexer
Post by: virtuosonic on May 08, 2011, 10:22:44 am
 :D thanks, now i can start the real work!