diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-29 15:17:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-29 15:17:02 +0000 |
commit | fd3f9eee0e9a37218edf21e1726ff1b5d90792ba (patch) | |
tree | f962777ac2faa00e81211c6896aa0e80a0e0c553 /parse.y | |
parent | 9c69eff7b362f99c0efab3781a4169bfe16eb3d4 (diff) | |
download | ruby-fd3f9eee0e9a37218edf21e1726ff1b5d90792ba.tar.gz |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) { |