On Tue, May 25, 2010 at 02:34:15PM +0200, Graeme Geldenhuys wrote:
 
> And yes I was told before that using regex for syntax highlighting is
> slow, but I think that's a matter of implementation. The editors I
> have seen and used are more that fast enough even on large files. The
> huge benefit of external (runtime) syntax highlighting via something
> like regex is that it is very simple to extend by anybody that knows
> regex.

Not as much, since it is not just the rule, but they must integrate as well.

But the main problem IMHO is that regex is not suited to highlight many
languages that require correct detection of matching tokens, like the Pascal
nested comments.


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to