summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-20 13:36:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-20 13:36:05 +0000
commit99a40f4bf60e64782dbb831158880f53cd38092b (patch)
tree0e7b507d084b163d9b20932c39c716828f641303 /parse.y
parentb74938dd42588a45c8521ed929865f73a717f0ec (diff)
* parse.y (rb_symname_p): [ not followed by ] is not valid symbol.
fixed: [ruby-talk:166520] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 36683d6..dd0e46b 100644
--- a/parse.y
+++ b/parse.y
@@ -5956,7 +5956,8 @@ rb_symname_p(name)
break;
case '[':
- if (*++m == ']' && *++m == '=') ++m;
+ if (*++m != ']') return Qfalse;
+ if (*++m == '=') ++m;
break;
default: