summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-29 10:55:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-29 10:55:51 +0000
commitf7692a33733cba872709828d505c9293684bfaca (patch)
tree939c2b83ae7921b804fed4d3e80121ebb3bc2421 /regparse.c
parent23e6fc744ef584a04ad29c8fefd8886ce46bf2be (diff)
downloadruby-f7692a33733cba872709828d505c9293684bfaca.tar.gz
* regparse.c (is_invalid_quantifier_target): Perl and old Ruby
accepts quantifier on anchors. [ruby-core:20161] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/regparse.c b/regparse.c
index c7b42eaf74..8a02966def 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