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

ruby-changes:16017

From: nobu <ko1@a...>
Date: Sun, 23 May 2010 17:40:56 +0900 (JST)
Subject: [ruby-changes:16017] Ruby:r27966 (trunk, ruby_1_9_2): * parse.y (warn_balanced): no warning for singleton class.

nobu	2010-05-23 17:40:36 +0900 (Sun, 23 May 2010)

  New Revision: 27966

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

  Log:
    * parse.y (warn_balanced): no warning for singleton class.
      [ruby-core:30366]

  Modified files:
    branches/ruby_1_9_2/ChangeLog
    branches/ruby_1_9_2/parse.y
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27965)
+++ ChangeLog	(revision 27966)
@@ -1,3 +1,8 @@
+Sun May 23 17:40:34 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* parse.y (warn_balanced): no warning for singleton class.
+	  [ruby-core:30366]
+
 Sun May 23 16:56:11 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* include/ruby/ruby.h (CONST_ID_CACHE, rb_intern_const): suppress
Index: parse.y
===================================================================
--- parse.y	(revision 27965)
+++ parse.y	(revision 27966)
@@ -6484,7 +6484,8 @@
 #define ambiguous_operator(op, syn) dispatch2(operator_ambiguous, ripper_intern(op), rb_str_new_cstr(syn))
 #endif
 #define warn_balanced(op, syn) \
-    (last_state != EXPR_DOT && last_state != EXPR_FNAME && last_state != EXPR_ENDFN && \
+    (last_state != EXPR_CLASS && last_state != EXPR_DOT && \
+     last_state != EXPR_FNAME && last_state != EXPR_ENDFN && \
      space_seen && !ISSPACE(c) && \
      (ambiguous_operator(op, syn), 0))
 
Index: ruby_1_9_2/ChangeLog
===================================================================
--- ruby_1_9_2/ChangeLog	(revision 27965)
+++ ruby_1_9_2/ChangeLog	(revision 27966)
@@ -1,3 +1,8 @@
+Sun May 23 17:40:34 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* parse.y (warn_balanced): no warning for singleton class.
+	  [ruby-core:30366]
+
 Sun May 23 17:16:37 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* include/ruby/ruby.h (CONST_ID_CACHE, rb_intern_const): suppress
Index: ruby_1_9_2/parse.y
===================================================================
--- ruby_1_9_2/parse.y	(revision 27965)
+++ ruby_1_9_2/parse.y	(revision 27966)
@@ -6488,7 +6488,8 @@
 #define ambiguous_operator(op, syn) dispatch2(operator_ambiguous, ripper_intern(op), rb_str_new_cstr(syn))
 #endif
 #define warn_balanced(op, syn) \
-    (last_state != EXPR_DOT && last_state != EXPR_FNAME && last_state != EXPR_ENDFN && \
+    (last_state != EXPR_CLASS && last_state != EXPR_DOT && \
+     last_state != EXPR_FNAME && last_state != EXPR_ENDFN && \
      space_seen && !ISSPACE(c) && \
      (ambiguous_operator(op, syn), 0))
 

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

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