[...]
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@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel