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 | 0ba42821dd51693bf0968c3cc44489c3bed317b4 (patch) | |
tree | 66ec530e9b23747ab012f2c470cca0ea508da0f0 /parse.y | |
parent | 955a978aef9ade50ba4791b2c133599b2d5a74de (diff) |
* 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/branches/ruby_1_8@12670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4351,6 +4351,7 @@ yylex() else { rb_compile_error("`@@%c' is not allowed as a class variable name", c); } + return 0; } if (!is_identchar(c)) { pushback(c); |