diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-19 14:33:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-19 14:33:11 +0000 |
commit | 29b836ff24d246c8bf6aa034b9d4176d41ad5b65 (patch) | |
tree | fb083a7ac4d74bfb6b3afb42f8872c51fc8c7f12 /parse.y | |
parent | c9d8e7d8bcec4f76294122656de9523791a0021f (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.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 '[': |