summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-09 15:06:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-09 15:06:57 +0000
commitecc6fc60b34461c8957a2a1fa884fd86a29dab4e (patch)
treec07eb72f3c2a4adb96e66164d986b09419d4cc60 /parse.y
parent86c4525ce3feb025ac933b450631e350f6e4fffb (diff)
downloadruby-ecc6fc60b34461c8957a2a1fa884fd86a29dab4e.tar.gz
ruby-ecc6fc60b34461c8957a2a1fa884fd86a29dab4e.tar.xz
ruby-ecc6fc60b34461c8957a2a1fa884fd86a29dab4e.zip
* variable.c (rb_obj_remove_instance_variable): better message.
[ruby-talk:68987] * variable.c (rb_mod_remove_const): ditto. * object.c (rb_obj_ivar_get): ditto. * object.c (rb_obj_ivar_set): ditto. * parse.y (yylex): ditto. * eval.c (rb_mod_define_method): Allow UnboundMethod as parameter. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index b37a74923..ea4112c5b 100644
--- a/parse.y
+++ b/parse.y
@@ -4271,10 +4271,10 @@ yylex()
}
if (ISDIGIT(c)) {
if (tokidx == 1) {
- rb_compile_error("`@%c' is not a valid instance variable name", c);
+ rb_compile_error("`@%c' is not allowable as an instance variable name", c);
}
else {
- rb_compile_error("`@@%c' is not a valid class variable name", c);
+ rb_compile_error("`@@%c' is not allowable as a class variable name", c);
}
}
if (!is_identchar(c)) {