diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-08 05:40:29 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-08 05:40:29 +0000 |
commit | 7c6ba274de3deab3dd03fc356b863a69b1828d26 (patch) | |
tree | c77a4134845f60587eeaf832e3569ffda3846861 /regex.c | |
parent | b5c4018402a0fdbb19a67017085f220de218342f (diff) | |
download | ruby-7c6ba274de3deab3dd03fc356b863a69b1828d26.tar.gz ruby-7c6ba274de3deab3dd03fc356b863a69b1828d26.tar.xz ruby-7c6ba274de3deab3dd03fc356b863a69b1828d26.zip |
* eval.c (Init_Proc): make Method and UnboundMethod independent.
They are like instance and its class. [ruby-core:00941]
* parse.y (yylex): disallow global variables like "$1ve".
[ruby-core:00945]
* marshal.c (marshal_dump): Marshal.dump(0, false) should cause an
error. (ruby-bugs-ja PR#421)
* regex.c (re_compile_pattern): warn if '-' is the edge of
character range.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1675,6 +1675,8 @@ re_compile_pattern(pattern, size, bufp) if (last > c) goto invalid_pattern; + if (last == '-' || c == '-') + re_warning("character class has `-' without escape"); range = 0; if (had_mbchar == 0) { for (;last<=c;last++) |