[Mono-devel-list] Patch for Bug #57228 On System.Text.RegularExpressions for Balancing group constructs
Eric Durand Tremblay
eric.durand-tremblay.1 at ulaval.ca
Mon Apr 19 11:37:55 EDT 2004
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.
Eric Durand-Tremblay
TIP-MONO Team
University Laval
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PerlTrials.patch
Type: text/x-patch
Size: 3186 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040419/345d2080/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: balancing.patch
Type: text/x-patch
Size: 4304 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040419/345d2080/attachment-0001.bin
More information about the Mono-devel-list
mailing list