Skip to content

Commit 63fac51

Browse files
committed
Get rid of ruby-mode.el confusions
1 parent c81b52e commit 63fac51

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/rdoc/parser/c.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,8 @@ def handle_method(type, var_name, meth_name, function, param_count,
10251025
elsif p_count == -1 then # argc, argv
10261026
rb_scan_args body
10271027
else
1028-
"(#{(1..p_count).map { |i| "p#{i}" }.join ', '})"
1028+
args = (1..p_count).map { |i| "p#{i}" }
1029+
"(#{args.join ', '})"
10291030
end
10301031

10311032

test/rdoc/test_rdoc_parser_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ def test_parse_class_lower_name_warning
921921
@parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, @comment
922922
end
923923
err = stds[1]
924-
assert_match(/Expected class name or '<<'\. Got/, err)
924+
assert_match(/Expected class name or '<<\'\. Got/, err)
925925
end
926926

927927
def test_parse_syntax_error_code

0 commit comments

Comments
 (0)