Slava told me how this is done on Jedit. Basicly you only reparse the
changed line, and the next one if the line-context has changed, ad
infinitum...

Cheers

On Fri, Dec 11, 2009 at 8:24 AM, Hugo Schmitt <[email protected]> wrote:
> Hi all,
>
> I'm writing some simple stuff on top of ui.gadgets.editors to enable
> code editing.
> I added "syntax highlighting" using xmode, but it is very slow,
> because the whole text is reparsed on each user input...
> Now I'm trying to figure out what needs to be reparsed when the text is 
> changed.
>
> This link [1] says that one should keep track if the "initial states"
> when the lexer returns to a positon equivalent to the beginning of the
> buffer, but I don't know if that is valid/possible in xmode.
>
> I also tried to understand jedit (since xmode is a port from jedit's
> syntax highlighting engine) but could not find a document describing
> jedit's internal aspects and couldn't get much help on #jedit.
>
> Any help appreciated... I'm lost here :)
>
> Thanks in advance,
> -hugo
>
> --
> [1] http://ostermiller.org/syntax/editor.html
>

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to