зеркало из https://github.com/github/ruby.git
[ruby/rdoc] Support newline in the middle of constant definition
https://github.com/ruby/rdoc/commit/74d3984324
This commit is contained in:
Родитель
e50e552693
Коммит
adc9b3ca7f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче