diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-22 00:40:49 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-22 00:40:49 +0000 |
commit | 5a41ffced289753ea0832eee1af0a616db4f5edf (patch) | |
tree | 875fde655941284d2ba41e2400c87b626837dabc /parse.y | |
parent | 30b08891ba6ce38c9971a9dcfd444bf65f4dab08 (diff) |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |