Armel Asselin wrote:
Hi,
Just to bring my stone to the building... I do not know if it would help
you
in any manner however.
The style stuff that I'm adding is done so that the lexer will touch only
the portion that you allow it to (i.e. the protection style has been added
to indicators and they can be set out of reach of the lexer, so that only
you can touch them).
I'm not sure but as in this case, re-lexing would not touch at all your
protection bit, would it help?
Thanks for joining the discussion, Armel! :)
Does your "protection style" implement the same functionality as the
built-in SCI_STYLESETCHANGEABLE - but using indicator bits instead of
style bits?
Have you made provision for the case of allowing caret positioning
inside of a range of "protected" chars? This would disallow
unintended coalescing of adjoining protected ranges.
And yes, not worrying about the "special" (protected) versions of the
styles being overwritten by re-lexing would simplify part of my
problem... is this the main reason you are working on your changes?
A comment on using the indicator bits: my current use of the indicator
bits is to display "ephemeral" decorations which can all be erased on
a fairly regular basis... using them to save longer-lasting state will
unfortunately prevent the simple expedient of setting *all* indicator
bits to zero to do this erasing - but this happens whether they get
used as your primary protected state representation OR as "modifiers"
of the existing protected state mechanism... :(
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest