mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
23e6fc744e
commit
f7692a3373
2 changed files with 9 additions and 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>
|
Sat Nov 29 18:28:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* ext/socket/socket.c (sock_getaddrinfo): should have updated for
|
* ext/socket/socket.c (sock_getaddrinfo): should have updated for
|
||||||
|
|
|
@ -2112,6 +2112,7 @@ conv_backslash_value(int c, ScanEnv* env)
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* no invalid quantifier */
|
||||||
static int
|
static int
|
||||||
is_invalid_quantifier_target(Node* node)
|
is_invalid_quantifier_target(Node* node)
|
||||||
{
|
{
|
||||||
|
@ -2143,6 +2144,9 @@ is_invalid_quantifier_target(Node* node)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#define is_invalid_quantifier_target(node) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ?:0, *:1, +:2, ??:3, *?:4, +?:5 */
|
/* ?:0, *:1, +:2, ??:3, *?:4, +?:5 */
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue