[ruby/rdoc] Support newline in the middle of constant definition
https://github.com/ruby/rdoc/commit/74d3984324
This commit is contained in:
parent
e50e552693
commit
adc9b3ca7f
@ -378,7 +378,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
|
|||||||
record_location container
|
record_location container
|
||||||
|
|
||||||
get_tk
|
get_tk
|
||||||
skip_tkspace_without_nl
|
skip_tkspace
|
||||||
if :on_lparen == peek_tk[:kind] # ProcObjectInConstant::()
|
if :on_lparen == peek_tk[:kind] # ProcObjectInConstant::()
|
||||||
parse_method_or_yield_parameters
|
parse_method_or_yield_parameters
|
||||||
break
|
break
|
||||||
|
@ -100,7 +100,7 @@ class C; end
|
|||||||
assert_equal 'E', name_t[:text]
|
assert_equal 'E', name_t[:text]
|
||||||
assert_equal 'D::E', given_name
|
assert_equal 'D::E', given_name
|
||||||
|
|
||||||
assert_raise RDoc::Error do
|
assert_nothing_raised do
|
||||||
util_parser("A::\nB").get_class_or_module ctxt
|
util_parser("A::\nB").get_class_or_module ctxt
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user