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

[ruby/rdoc] Support newline in the middle of constant definition

https://github.com/ruby/rdoc/commit/74d3984324
This commit is contained in:
aycabta 2019-12-24 07:41:37 +09:00
parent e50e552693
commit adc9b3ca7f
2 changed files with 2 additions and 2 deletions

View file

@ -378,7 +378,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
record_location container
get_tk
skip_tkspace_without_nl
skip_tkspace
if :on_lparen == peek_tk[:kind] # ProcObjectInConstant::()
parse_method_or_yield_parameters
break

View file

@ -100,7 +100,7 @@ class C; end
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