News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

adding a lexer

Started by virtuosonic, May 07, 2011, 07:18:07 AM

Previous topic - Next topic

virtuosonic

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
language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net

MortenMacFly

Quote from: virtuosonic on May 07, 2011, 07:18:07 AM
did i forgot something
How to tell? You didn't attach the files to this post.
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]

virtuosonic

language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net

Folco

You have some makefiles and Scintilla files to modify when you want your lexer to be compiled with CB.
Kernel Extremist - PedroM power ©

virtuosonic

#4
here is my modified project file (only the windows one), don't get disappointed i have even tested this lexer i'm only starting
language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net

Folco

Ok, I don't use CB to compile itself...
Kernel Extremist - PedroM power ©

virtuosonic

when i change the index of the lexer in the xml file to another lexer, like bash (62), it show in the menu
language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net

Jenna

Did you fix wxSCI_LEX_LAST in sdk/wxscintilla/include/wx/wxscintilla.h:497, so your lexers index is below or equal it ?

virtuosonic

#8
 :D thanks, now i can start the real work!
language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net