mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rdoc] Normalization of comment should check language
RDoc::Text#normalize_comment that is included RDoc::Comment always
remove Ruby style comment indicator "#" and C style comment indicator
"/**/", but should check language and remove only the language's comment
indicator.
ca68ba1e73
This commit is contained in:
parent
f7cbbc7074
commit
a86d4eef4b
11 changed files with 73 additions and 53 deletions
|
@ -11,7 +11,7 @@ class TestRDocContextSection < RDoc::TestCase
|
|||
@klass = @top_level.add_class RDoc::NormalClass, 'Object'
|
||||
|
||||
@S = RDoc::Context::Section
|
||||
@s = @S.new @klass, 'section', comment('# comment', @top_level)
|
||||
@s = @S.new @klass, 'section', comment('# comment', @top_level, :ruby)
|
||||
end
|
||||
|
||||
def test_add_comment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue