summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-29 15:17:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-29 15:17:02 +0000
commit0ba42821dd51693bf0968c3cc44489c3bed317b4 (patch)
tree66ec530e9b23747ab012f2c470cca0ea508da0f0 /parse.y
parent955a978aef9ade50ba4791b2c133599b2d5a74de (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.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index ef709425cb..157aefc939 100644
--- a/parse.y
+++ b/parse.y
@@ -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);