lib/rdoc/parser/c.rb in rdoc-3.8 vs lib/rdoc/parser/c.rb in rdoc-3.9
- old
+ new
@@ -643,13 +643,11 @@
meth_obj.call_seq = seq
elsif comment.sub!(/\A\/\*\s*call-seq:(.*?)\*\/\Z/, '') then
meth_obj.call_seq = $1.strip
end
- if comment.sub!(/\s*:(nodoc|doc|yields?|args?):\s*(.*)/, '') then
- RDoc::Parser.process_directive meth_obj, $1, $2
- end
+ look_for_directives_in meth_obj, comment
end
##
# Finds a <tt>Document-method</tt> override for +meth_obj+ on +class_name+
@@ -911,15 +909,13 @@
#
# /*
# * :title: My Awesome Project
# */
#
- # This routine modifies its parameter
+ # This method modifies the +comment+
- def look_for_directives_in(context, comment)
- preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include
-
- preprocess.handle comment, context do |directive, param|
+ def look_for_directives_in context, comment
+ @preprocess.handle comment, context do |directive, param|
case directive
when 'main' then
@options.main_page = param
''
when 'title' then