[Geany-Devel] Compiler tab suggestions

Lex Trotman elextr at xxxxx
Sun Jan 19 20:36:18 UTC 2014


[...]

> It's not a limitation, but a bug in the current regex parser. We
> should either document that the first two capturing groups are used,
> no matter if they match, or skip the non-matching groups (which is
> quite easy). After that, P11 can be updated - fixing the regex parser
> is outside it's scope.
>

Yes, there was a misunderstanding (forget who, but remember mentioning it)
that the capture numbers of Gregex are static, match one is the first
capture () match two the second () even if they did not match.  Seems like
the code wasn't fixed though.  Filetypes_parse_error_message() just needs
to loop through the matches until it finds the first two that actually
matched.

Cheers
Lex


>
> --
> E-gards: Jimmy
> _______________________________________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20140120/ac9d24d1/attachment.html>


More information about the Devel mailing list