On 02/10/2011 20:16, Jiří Techet wrote:
On Sun, Oct 2, 2011 at 16:34, Nick Treleaven
Now done. This fixes my performance issue with doc/geany.html. Needs testing though. Regex parsers are:
actionscript cobol html php R
Link: http://geany.svn.sourceforge.net/viewvc/geany?view=revision&revision=597...
I think Colomban's idea of using GRegex is great in that all systems will then have the same regex behaviour. The old situation was a support headache.
GRegex is more reliable besides being more powerful, based on PCRE. The Windows version (at least) of GNU regex we had didn't understand Mac line endings for ^, $.
Cool! By the way, are the #ifdef HAVE_REGEX needed? From glib sources it seems GRegex either uses system pcre or built-in pcre so you should have always regex support.
I left HAVE_REGEX in lregex.c so less code is different from CTags. I think it doesn't cause any harm.