[Mono-devel-list] Patch for Bug #57228 On System.Text.RegularExpressions for Balancing group constructs
Gonzalo Paniagua Javier
gonzalo at ximian.com
Mon Apr 19 13:46:35 EDT 2004
El lun, 19-04-2004 a las 17:37, Eric Durand Tremblay escribió:
> Hello all,
>
> In order to work on Compiled Balancing construct
> "(?<depth>)(?<foo-depth>)" , I revewed it on the interpreter. It's
> actually non functionnal at all.
>
> I resolved all the bugs I could find and now, it solve classical
> parenthesis matching construct.
>
> So :
> 1) Capture inner group when named.
> 2) Resolved parse error caused by not capturing inner group
> 3) Resolved incorrect capture group
> 4) Now, not capturing anything when unnamed ( correct behavior)
>
> This now work :
> "(((?<foo>\()[^()]*)+((?<bar-foo>\))[^()]*)+)+(?(foo)(?!))"
>
> Attached patch and regression.
>
> PLEASE : as asked before, do a dos2unix -U * in the
> System.Text.RegularExpressions/ and Test/System.Text.RegularExpressions
> It is very annoying to make patch when confronted with DOS file.
Your patches are in CVS now. I also converted to unix endings the files
affected.
Thanks!
-Gonzalo
More information about the Mono-devel-list
mailing list