summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-19 14:33:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-19 14:33:11 +0000
commit29b836ff24d246c8bf6aa034b9d4176d41ad5b65 (patch)
treefb083a7ac4d74bfb6b3afb42f8872c51fc8c7f12 /parse.y
parentc9d8e7d8bcec4f76294122656de9523791a0021f (diff)
* parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 364788d27c..2fc0fcc616 100644
--- a/parse.y
+++ b/parse.y
@@ -5940,7 +5940,9 @@ rb_symname_p(name)
break;
case '>':
- if (*++m == '>') ++m;
+ switch (*++m) {
+ case '>': case '=': ++m; break;
+ }
break;
case '=':
@@ -5960,6 +5962,7 @@ rb_symname_p(name)
break;
case '|': case '^': case '&': case '/': case '%': case '~': case '`':
+ ++m;
break;
case '[':