Neil Hodgson wrote:
The helper classes *Accessor and StyleContext are written for scanning forwards so you'll have trouble patching up previous styling. I'd look at peeking ahead instead.
Yes, I feared it was the only option. It can be a bit time consuming to look ahead in each line, but perhaps I can optimize the cases. And that's scripting anyway, ie. we rarely have scripts longer than a few KB, so that's more a theoritical concern, and I rarely have to look ahead so much (ie. triggering cases are just a few chars away).
OK, thank you for putting me on the right track. I will probably try and make a pre-scan class. -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- -- -- -- -- -- -- -- -- -- -- -- -- -- _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
