[ruby/rdoc] Get rid of ruby-mode.el confusions
https://github.com/ruby/rdoc/commit/63fac51198
This commit is contained in:
parent
994b3f1dc6
commit
ec6d1cf28f
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user