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

ruby-changes:8242

From: naruse <ko1@a...>
Date: Mon, 13 Oct 2008 19:14:04 +0900 (JST)
Subject: [ruby-changes:8242] Ruby:r19770 (trunk): * parse.y (token_info_pop): show source filename.

naruse	2008-10-13 19:13:40 +0900 (Mon, 13 Oct 2008)

  New Revision: 19770

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19770

  Log:
    * parse.y (token_info_pop): show source filename. [ruby-dev:36710]

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19769)
+++ ChangeLog	(revision 19770)
@@ -1,3 +1,7 @@
+Mon Oct 13 19:07:52 2008  NARUSE, Yui  <naruse@r...>
+
+	* parse.y (token_info_pop): show source filename. [ruby-dev:36710]
+
 Mon Oct 13 08:59:08 2008  Masaki Suketa  <masaki.suketa@n...>
 
 	* ext/win32ole/win32ole.c (load_conv_function51932): support
Index: parse.y
===================================================================
--- parse.y	(revision 19769)
+++ parse.y	(revision 19770)
@@ -4856,8 +4856,9 @@
     if (token_info_has_nonspaces(parser, token) || ptinfo->nonspc) { /* SKIP */
 	goto finish;
     }
-    rb_warning("mismatched indentations: line %d:'%s' and line %d:'%s'",
-	       ptinfo->linenum, ptinfo->token, linenum, token);
+    rb_compile_warning(ruby_sourcefile, linenum,
+               "mismatched indentations at '%s' with '%s' at %d",
+	       token, ptinfo->token, ptinfo->linenum);
 
   finish:
     xfree(ptinfo);

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

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