Hi Herbert,

herbert breunung wrote:
   $self->{y}           = 0;
   $self->{lastxsearch} = -1;
   $self->{lastysearch} = 0;
it handles the Y as operator, so you get messed up highlight.

If you would like to suggest an algorithm that involves limited parsing or look backwards/forwards, I would be happy to analyze it and perhaps look at implementing it. Regrettably, I currently do not have the time to work on full-scale parsing, unless someone else wants to lead the push.

The following are related (there are probably other cases):
$opts{s}            # hash
@foo{s}             # slice
$foo{y/2}           # y and slash are not quote-like ops
$bar->{s/foo/bar/}  # cases like this have to be recognized too

Some quote-like operators that cause similar glitches are:
m q qq qr qx qw s tr y

Do e-mail me privately or discuss a possible solution on the list if you are interested. I am regrettably in a "reacting to bug report" mode w.r.t. LexPerl, as I haven't yet found a practical solution to fixing some of these glitches with the current code.

HTH,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

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

Reply via email to