Re: [scintilla] Problems adding a new lexer

44 views
Skip to first unread message

Neil Hodgson

unread,
Sep 24, 2012, 8:14:29 AM9/24/12
to scintilla...@googlegroups.com
RaptorX:

> hi guys, I have been meaning to create a new lexer for scintilla but I have been having a few issues while adding it…
> ...
> So, what am I missing??
> when I try my code and set the lexer to 108 i get no errors and I can change the color of the default font... but the lexer function never gets called so I cannot do any actual lexing!

Are you building a Scintilla DLL that supports lexing? Do other lexers work?

Neil

Neil Hodgson

unread,
Oct 6, 2012, 6:07:20 AM10/6/12
to scintilla...@googlegroups.com
RaptorX:

> Yes all other lexers work fine. And as I said if I change the color of the first style (0) it will work, so I am sure the lexer was added correctly and it is working.
> The problem is that the lexer function doesn't get called. and I am afraid the folding function either.

I wouldn't trust MessageBox and would place a breakpoint on the lexer function. If the breakpoint appears there but is never triggered, I'd breakpoint somewhere that should be calling the lexer, maybe LexInterface::Colourise and step through.

Neil

Reply all
Reply to author
Forward
0 new messages