Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rdoc/parser/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def get_class_or_module container, ignore_constants = false
record_location container

get_tk
skip_tkspace_without_nl
skip_tkspace
if :on_lparen == peek_tk[:kind] # ProcObjectInConstant::()
parse_method_or_yield_parameters
break
Expand Down
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_parser_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_get_class_or_module
assert_equal 'E', name_t[:text]
assert_equal 'D::E', given_name

assert_raise RDoc::Error do
assert_nothing_raised do
util_parser("A::\nB").get_class_or_module ctxt
end
end
Expand Down