Neil Hodgson wrote:
Robert Roessler:
Follow-ups to my two open issues on this thread:
1) my patched version of StyleContext.h is still available @
http://www.rftp.com/StyleContext.h
OK, committed.
For instance, SetState() *could* have an optional parameter which
would handle my "exclusive" / "inclusive" coloring cases... say an int
which defaults to 0 which gets added to the currentPos - 1 expression.
So the style is set for n characters but the currentPos doesn't change?
Ack - I can see how that may have been unclear... no, I only mean an
optional adjustment to the coloring range. Since LexCaml is coloring
when the next token is seen / the previous token terminates, this is
mostly about saying "this time, *include* the current char with the
range we are coloring" by specifying a value of 1 for the param (which
would otherwise default to 0).
E.g., when scanning an identifier and encountering an operator char, I
do *not* want to include the current char... but in the case of a
string, when I see the terminating '"' char, I *do* want to see it as
part of the previous state - and colored accordingly.
To sum up, this would not affect the state change itself or the
updating of currentPos (in the case of ForwardSetState()).
OTOH, as I already said, LexCaml could not use this anyway, since its
coloring model is "anchored" by the value of currentPos at the *top*
of the char loop, and switching to a currentPos-relative coloring
range at the *bottom* of the loop would necessitate using the new
SetState() with *both* positive and negative "adjustments"... which
seems like maintenance troubles to me. ;)
Speaking of maintenance, I would like to check in my LexCaml changes -
but there are also [state redefinition] changes to Scintilla.iface and
caml.properties (the latter over in the SciTE tree)... which of these
should I do myself, and who should run the Python script?
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest