herbert breunung wrote:
$self->{y} = 0; $self->{lastxsearch} = -1; $self->{lastysearch} = 0;it handles the Y as operator, so you get messed up highlight.
Yeah, as a sometime LexPerl contributor, this is in my to-do list and test case file. The current mostly-lexing approach is showing its limits. The corner cases are becoming more obvious. I haven't decided whether I ought to chase down all these cases or wait for the parser.
In this case, LexPerl already checks for -><bareword>, e.g. ->y, so for ->{y} I think some kind of mini-parser is needed, otherwise yet another similar case would pop up. The trouble is, how far should one take this parsing. At this point, a general parser becomes mighty attractive, but that is a non-trivial task.
Some HERE doc glitches are bothering me too; I am planning to go over the bash & perl sources to check what the actual behaviour is. Anyway, I'll try to follow up on my to-do list when I have the time, but I can't guarantee that I will iron all of it out anytime soon. In the meantime, patches are welcome.
-- Cheers, Kein-Hong Man (esq.) Kuala Lumpur, Malaysia _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
