From e72fbb7b2104fb27c7255d46338cf79354fea00b Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 30 Nov 2008 09:25:14 +0000 Subject: merges r20391 and r20398 from trunk into ruby_1_9_1. * 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/branches/ruby_1_9_1@20426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- regparse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'regparse.c') 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 -- cgit