summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog13
-rw-r--r--parse.y3
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 <nobu@ruby-lang.org>
+
+ * 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 <matz@ruby-lang.org>
* lib/fileutils.rb (FileUtils::ln): ln documentation fix.
@@ -21,13 +26,13 @@ Fri Nov 18 17:35:09 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* 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: