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

ruby-changes:71131

From: Nobuyoshi <ko1@a...>
Date: Wed, 9 Feb 2022 22:23:05 +0900 (JST)
Subject: [ruby-changes:71131] ec6d1cf28f (master): [ruby/rdoc] Get rid of ruby-mode.el confusions

https://git.ruby-lang.org/ruby.git/commit/?id=ec6d1cf28f

From ec6d1cf28fc333fa360ab786c3852b95475932b2 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 9 Dec 2021 00:15:54 +0900
Subject: [ruby/rdoc] Get rid of ruby-mode.el confusions

https://github.com/ruby/rdoc/commit/63fac51198
---
 lib/rdoc/parser/c.rb               | 3 ++-
 test/rdoc/test_rdoc_parser_ruby.rb | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb
index df86d7f452..075f4a072b 100644
--- a/lib/rdoc/parser/c.rb
+++ b/lib/rdoc/parser/c.rb
@@ -1015,7 +1015,8 @@ class RDoc::Parser::C < RDoc::Parser https://github.com/ruby/ruby/blob/trunk/lib/rdoc/parser/c.rb#L1015
                           elsif p_count == -1 then # argc, argv
                             rb_scan_args body
                           else
-                            "(#{(1..p_count).map { |i| "p#{i}" }.join ', '})"
+                            args = (1..p_count).map { |i| "p#{i}" }
+                            "(#{args.join ', '})"
                           end
 
 
diff --git a/test/rdoc/test_rdoc_parser_ruby.rb b/test/rdoc/test_rdoc_parser_ruby.rb
index b3026b14ca..ef8ad91668 100644
--- a/test/rdoc/test_rdoc_parser_ruby.rb
+++ b/test/rdoc/test_rdoc_parser_ruby.rb
@@ -921,7 +921,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_ruby.rb#L921
       @parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, @comment
     end
     err = stds[1]
-    assert_match(/Expected class name or '<<'\. Got/, err)
+    assert_match(/Expected class name or '<<\'\. Got/, err)
   end
 
   def test_parse_syntax_error_code
-- 
cgit v1.2.1


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

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