1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (parser_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/trunk@12670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-06-29 15:17:02 +00:00
parent 9c69eff7b3
commit fd3f9eee0e
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
Sat Jun 30 00:17:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_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]
Fri Jun 29 23:38:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (stmts): fix for ripper.

View file

@ -6705,6 +6705,7 @@ parser_yylex(struct parser_params *parser)
else {
rb_compile_error(PARSER_ARG "`@@%c' is not allowed as a class variable name", c);
}
return 0;
}
uc = (unsigned char)c;
if (!is_identchar(uc)) {

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-06-29"
#define RUBY_RELEASE_DATE "2007-06-30"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070629
#define RUBY_RELEASE_CODE 20070630
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 6
#define RUBY_RELEASE_DAY 29
#define RUBY_RELEASE_DAY 30
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];