On Sun, Oct 2, 2011 at 16:34, Nick Treleaven <[email protected]> wrote: > On 30/09/2011 17:32, Nick Treleaven wrote: >> >> On 30/09/2011 14:37, Nick Treleaven wrote: >>> >>> On 27/09/2011 13:17, Nick Treleaven wrote: >>>> >>>> On 26/09/2011 23:00, Colomban Wendling wrote: >>>>> >>>>> Le 26/09/2011 13:48, Nick Treleaven a écrit : >>>>>> >>>>>> I guess the reason is the regex code >>>>>> that >>>>>> is really old which is used for Windows builds. >>>>> >>>>> Maybe we could use GRegex now we have a GLib recent enough? >> >>> I'm now working on porting lregex.c to GRegex, I think it might be >>> compatible enough. I'll commit it to unstable if it goes OK. >> >> 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=5976 > > 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. Cheers, Jiri _______________________________________________ Geany-devel mailing list [email protected] https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
