From: nisikimi Date: Wed, 20 Sep 2006 03:59:31 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: XML-base~36 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48842f4630f870b569095cacf170caf116f89203;p=m17n%2Fm17n-docs.git *** empty log message *** --- diff --git a/utils/usr_filter_example_flag.rb b/utils/usr_filter_example_flag.rb index c963256..cade553 100644 --- a/utils/usr_filter_example_flag.rb +++ b/utils/usr_filter_example_flag.rb @@ -34,29 +34,18 @@ while gets else # when example == 0 - case $_ + case $_ - when /^\s*$/ - if doxy == 1 - buf.push($_) - end + when /^\s*$/ + if doxy == 1 # empty line in doxygen comment + buf.push($_) + end - when /\/\*=\*\// - commentblock(buf) + when /\/\*=\*\// #/*=*/ (flush) + commentblock(buf) buf = [] - when /#endif/ -# if doxy == 1 -# buf.push($_.gsub!(/#endif/, "@endcode")) -# else - commentblock(buf) - buf = [] - print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code -# end - doxy = 0 - - -# when /^\/\*\s.*\*\// # /* comment */ type comment + when /^\/\*\s.*\*\// # /* comment */ type comment # if doxy == 1 # # should be included only in the example code # ## We used to do the following substituion as a workaround of