mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
30b08891ba
commit
5a41ffced2
3 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
Wed Aug 22 09:40:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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]
|
||||
|
||||
Wed Aug 22 09:39:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (dsym): return non-null NODE even if yyerror(). based on a
|
||||
|
|
|
|||
1
parse.y
1
parse.y
|
|
@ -4350,6 +4350,7 @@ yylex()
|
|||
else {
|
||||
rb_compile_error("`@@%c' is not allowed as a class variable name", c);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
if (!is_identchar(c)) {
|
||||
pushback(c);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#define RUBY_RELEASE_DATE "2007-08-22"
|
||||
#define RUBY_VERSION_CODE 186
|
||||
#define RUBY_RELEASE_CODE 20070822
|
||||
#define RUBY_PATCHLEVEL 51
|
||||
#define RUBY_PATCHLEVEL 52
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue