summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-22 00:40:49 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-22 00:40:49 +0000
commite7db28affba2ed90bc0d3d7fad7a3f1aa7ffa0ae (patch)
tree875fde655941284d2ba41e2400c87b626837dabc /parse.y
parentd8311608ffbcd23665f859f549789e8c05ff0b60 (diff)
downloadruby-e7db28affba2ed90bc0d3d7fad7a3f1aa7ffa0ae.tar.gz
ruby-e7db28affba2ed90bc0d3d7fad7a3f1aa7ffa0ae.tar.xz
ruby-e7db28affba2ed90bc0d3d7fad7a3f1aa7ffa0ae.zip
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@13154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index fcb888f71..7aa04c883 100644
--- a/parse.y
+++ b/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);