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

ruby-changes:41359

From: naruse <ko1@a...>
Date: Mon, 4 Jan 2016 16:23:18 +0900 (JST)
Subject: [ruby-changes:41359] naruse:r53431 (trunk): temporally revert r53411 to debug

naruse	2016-01-04 16:23:25 +0900 (Mon, 04 Jan 2016)

  New Revision: 53431

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53431

  Log:
    temporally revert r53411 to debug
    
    http://rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20151225T162507Z.diff.html.gz

  Modified files:
    trunk/parse.y
    trunk/test/ripper/test_ripper.rb
Index: test/ripper/test_ripper.rb
===================================================================
--- test/ripper/test_ripper.rb	(revision 53430)
+++ test/ripper/test_ripper.rb	(revision 53431)
@@ -60,16 +60,4 @@ class TestRipper::Ripper < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ripper/test_ripper.rb#L60
 
     assert_predicate @ripper, :yydebug
   end
-
-  def test_regexp_with_option
-    bug11932 = '[ruby-core:72638] [Bug #11932]'
-    src = '/[\xC0-\xF0]/u'.force_encoding(Encoding::UTF_8)
-    ripper = Ripper.new(src)
-    ripper.parse
-    assert_predicate(ripper, :error?)
-    src = '/[\xC0-\xF0]/n'.force_encoding(Encoding::UTF_8)
-    ripper = Ripper.new(src)
-    ripper.parse
-    assert_not_predicate(ripper, :error?, bug11932)
-  end
 end if ripper_test
Index: parse.y
===================================================================
--- parse.y	(revision 53430)
+++ parse.y	(revision 53431)
@@ -4042,7 +4042,7 @@ regexp		: tREGEXP_BEG regexp_contents tR https://github.com/ruby/ruby/blob/trunk/parse.y#L4042
 			}
 			if (ripper_is_node_yylval(opt)) {
 			    $3 = RNODE(opt)->nd_rval;
-			    options = (int)RNODE(opt)->nd_tag;
+			    options = (int)RNODE(opt)->nd_state;
 			}
 			if (src && NIL_P(rb_parser_reg_compile(parser, src, options, &err))) {
 			    compile_error(PARSER_ARG "%"PRIsVALUE, err);

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

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