From 99a40f4bf60e64782dbb831158880f53cd38092b Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 20 Nov 2005 13:36:05 +0000 Subject: * 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 --- ChangeLog | 13 +++++++++---- parse.y | 3 ++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa0daee1ca..4cd1945b50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Nov 20 22:34:06 2005 Nobuyoshi Nakada + + * parse.y (rb_symname_p): [ not followed by ] is not valid symbol. + fixed: [ruby-talk:166520] + Sat Nov 19 19:57:54 2005 Yukihiro Matsumoto * lib/fileutils.rb (FileUtils::ln): ln documentation fix. @@ -21,13 +26,13 @@ Fri Nov 18 17:35:09 2005 Hidetoshi NAGAI * ext/tk/lib/multi-tk.rb: add restriction to access the entried command table and manipulate other IPs (for reason of security). - Now, a IP object can be controlled by only its master IP or the - default IP. + Now, a IP object can be controlled by only its master IP or the + default IP. * ext/tk/lib/remote-tk.rb: add restriction to manipulate. - * ext/tk/tcltklib.c (ip_is_slave_of_p): add TclTkIp#slave_of?(ip) - to check manipulability. + * ext/tk/tcltklib.c (ip_is_slave_of_p): add TclTkIp#slave_of?(ip) + to check manipulability. * ext/tk/lib/tk.rb: bug fix on handling of Tcl's namespaces. diff --git a/parse.y b/parse.y index 36683d6686..dd0e46b99b 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: -- cgit v1.2.3