On Wed, May 26, 2010 at 03:47:02PM +0200, Graeme Geldenhuys wrote:
> > where regex will have more problems than other principles, namely nested
> > constructs.
> 
> Nested if statements, nested procedures, nested comments (the correct
> style) all work fine with most regex highlighters, so I really don't
> see your issue.  But enough said, we could go on forever like this,
> but I have better things to do right now.
> 
> BTW:
> I tried all the examples listed on this page (which FPC doesn't
> support in most cases), and jEdit formatted then without problems -
> perfectly, just like the website shows. Yes, nested types, nested
> classes etc.. Lazarus and MSEide did too by the way [just to be fair].
>   :-)
> 
>    http://edn.embarcadero.com/article/34324

Note the nesting is about matching nesting _structures_ with highlighting.
Not highlighting keywords in nested structures them.  That's why the primary
example was comments, not if..then because for comments it matters how the
result is highlighted.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to