Skip to content

Commit 5a41ffc

Browse files
committed
* parse.y (yylex): return non-valid token for an invalid
instance/class variable name. a patch from from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 30b0889 commit 5a41ffc

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Wed Aug 22 09:40:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* parse.y (yylex): return non-valid token for an invalid
4+
instance/class variable name. a patch from from Yusuke ENDOH
5+
<mame AT tsg.ne.jp>. [ruby-dev:31095]
6+
17
Wed Aug 22 09:39:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
28

39
* parse.y (dsym): return non-null NODE even if yyerror(). based on a

parse.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4350,6 +4350,7 @@ yylex()
43504350
else {
43514351
rb_compile_error("`@@%c' is not allowed as a class variable name", c);
43524352
}
4353+
return 0;
43534354
}
43544355
if (!is_identchar(c)) {
43554356
pushback(c);

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2007-08-22"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20070822
5-
#define RUBY_PATCHLEVEL 51
5+
#define RUBY_PATCHLEVEL 52
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)