ruby-changes:8855
From: matz <ko1@a...>
Date: Sat, 29 Nov 2008 19:56:09 +0900 (JST)
Subject: [ruby-changes:8855] Ruby:r20391 (trunk): * regparse.c (is_invalid_quantifier_target): Perl and old Ruby
matz 2008-11-29 19:55:51 +0900 (Sat, 29 Nov 2008) New Revision: 20391 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20391 Log: * regparse.c (is_invalid_quantifier_target): Perl and old Ruby accepts quantifier on anchors. [ruby-core:20161] Modified files: trunk/ChangeLog trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 20390) +++ regparse.c (revision 20391) @@ -2112,6 +2112,7 @@ return c; } +#if 0 /* no invalid quantifier */ static int is_invalid_quantifier_target(Node* node) { @@ -2143,6 +2144,9 @@ } return 0; } +#else +#define is_invalid_quantifier_target(node) 0 +#endif /* ?:0, *:1, +:2, ??:3, *?:4, +?:5 */ static int Index: ChangeLog =================================================================== --- ChangeLog (revision 20390) +++ ChangeLog (revision 20391) @@ -1,3 +1,8 @@ +Sat Nov 29 19:19:32 2008 Yukihiro Matsumoto <matz@r...> + + * regparse.c (is_invalid_quantifier_target): Perl and old Ruby + accepts quantifier on anchors. [ruby-core:20161] + Sat Nov 29 18:28:57 2008 Yukihiro Matsumoto <matz@r...> * ext/socket/socket.c (sock_getaddrinfo): should have updated for -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/