"Armel Asselin" <[EMAIL PROTECTED]> wrote:
> >   I'm a little surprised that you didn't want a mechanism for storing
> > extra lexer state. The standard byte wide style buffer quickly runs
> > out of states and the per-line style integer can be limiting so I've
> > thought in the past about providing lexer entry points for allocating
> > and deallocating per-document lexer state.
>
> was a "non per-line" approach already studied?

Good question.

[snip]
> this approach would use far less memory, be somewhat similar in run time in 
> worst case (and be much better in some others) and would allow arbitrary 
> number of styles as they would not be stored...

Yes and no.  For lexer defined styles, this could work fine for blocks
of some reasonable size (though would require a bit of data structure
work to implement efficiently). For user-defined indicators, a secondary
structure needs to be used.

A recent scintilla split the character and styling information, perhaps
it would make sense to split the styling from the indicators?  That
would allow for a possible switch to a smaller styling representation 
(with more styles!), while allowing for more indicators (yay!).


 - Josiah

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to