[前][次][番号順一覧][スレッド一覧]

ruby-changes:3767

From: ko1@a...
Date: Sat, 26 Jan 2008 23:42:30 +0900 (JST)
Subject: [ruby-changes:3767] nobu - Ruby:r15256 (trunk): * parse.y (assignable_gen, keyword_to_name): __ENCODING__ was missing.

nobu	2008-01-26 23:42:17 +0900 (Sat, 26 Jan 2008)

  New Revision: 15256

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

  Log:
    * parse.y (assignable_gen, keyword_to_name): __ENCODING__ was missing.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=15256&r2=15255&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15256&r2=15255&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 15255)
+++ ChangeLog	(revision 15256)
@@ -1,3 +1,7 @@
+Sat Jan 26 23:42:15 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* parse.y (assignable_gen, keyword_to_name): __ENCODING__ was missing.
+
 Sat Jan 26 19:08:45 2008  Tanaka Akira  <akr@f...>
 
 	* marshal.c (w_object): dump string encoding in USERDEF.
Index: parse.y
===================================================================
--- parse.y	(revision 15255)
+++ parse.y	(revision 15256)
@@ -7630,6 +7630,9 @@
     else if (id == keyword__LINE__) {
 	yyerror("Can't assign to __LINE__");
     }
+    else if (id == keyword__ENCODING__) {
+	yyerror("Can't assign to __ENCODING__");
+    }
     else if (is_local_id(id)) {
 	if (dyna_in_block()) {
 	    if (dvar_curr(id)) {
@@ -9562,6 +9565,7 @@
     {keyword_END,	"END"},
     {keyword__LINE__,	"__LINE__"},
     {keyword__FILE__,	"__FILE__"},
+    {keyword__ENCODING__, "__ENCODING__"},
     {0, NULL}
 };
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]