diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-29 10:55:51 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-29 10:55:51 +0000 |
| commit | 4d3db3a6a69b9806df7ca5bdf958622095ff2e60 (patch) | |
| tree | 939c2b83ae7921b804fed4d3e80121ebb3bc2421 | |
| parent | 3f9ed9269233117031d9be9ff43dcd6d329f262c (diff) | |
| download | ruby-4d3db3a6a69b9806df7ca5bdf958622095ff2e60.tar.gz ruby-4d3db3a6a69b9806df7ca5bdf958622095ff2e60.tar.xz ruby-4d3db3a6a69b9806df7ca5bdf958622095ff2e60.zip | |
* regparse.c (is_invalid_quantifier_target): Perl and old Ruby
accepts quantifier on anchors. [ruby-core:20161]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | regparse.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Nov 29 19:19:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * 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@ruby-lang.org> * ext/socket/socket.c (sock_getaddrinfo): should have updated for diff --git a/regparse.c b/regparse.c index c7b42eaf7..8a02966de 100644 --- a/regparse.c +++ b/regparse.c @@ -2112,6 +2112,7 @@ conv_backslash_value(int c, ScanEnv* env) return c; } +#if 0 /* no invalid quantifier */ static int is_invalid_quantifier_target(Node* node) { @@ -2143,6 +2144,9 @@ is_invalid_quantifier_target(Node* node) } return 0; } +#else +#define is_invalid_quantifier_target(node) 0 +#endif /* ?:0, *:1, +:2, ??:3, *?:4, +?:5 */ static int |
