1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rdoc] Get rid of ruby-mode.el confusions

https://github.com/ruby/rdoc/commit/63fac51198
This commit is contained in:
Nobuyoshi Nakada 2021-12-09 00:15:54 +09:00 committed by git
parent 994b3f1dc6
commit ec6d1cf28f
2 changed files with 3 additions and 2 deletions

View file

@ -1015,7 +1015,8 @@ class RDoc::Parser::C < RDoc::Parser
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

View file

@ -921,7 +921,7 @@ end
@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