On 08/10/2005, at 10.39, Allan Odgaard wrote:
On 08/10/2005, at 6.54, Gavin Kistner wrote:
begin = '(?<!--)\[\[';
If the negative look-behind on “--” is to avoid “[[” in a comment, then just make a rule to match “--.*$” (or similar) and you won't need to resort to look-behind etc.
That's be begin = "--[[" for a multi-line comment with the same nesting as Michael Sheet showed (I seem to recall that multi-line comments can have some sort of nesting!?!)