X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=utils%2Fusr_filter_example_flag.rb;h=cade5535b117d907490b172b2faf2b0d12aa82e9;hb=68e428fbc56b0f22a522a4b8951a47381d99872f;hp=c9632562b846c3ce969e2de9e26065a7210c5385;hpb=484e842679d21db2f0cf7d1cdad70459d23f29e9;p=m17n%2Fm17n-docs.git 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