X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-docs.git;a=blobdiff_plain;f=utils%2Fusr_filter.rb;h=52ac7106df0c672edc174bc6df2b6bdca2f0bbdb;hp=cade5535b117d907490b172b2faf2b0d12aa82e9;hb=70c33845161fed9f14fc4564c2cc0b53facd02bb;hpb=d2676894278300f5b173b1b08b0c7fbba160af17 diff --git a/utils/usr_filter.rb b/utils/usr_filter.rb index cade553..52ac710 100755 --- a/utils/usr_filter.rb +++ b/utils/usr_filter.rb @@ -45,6 +45,11 @@ while gets commentblock(buf) buf = [] + when /\/\* @[{}] \*\// # /* comment */ type comment + commentblock(buf) + buf = [] + print($_) + when /^\/\*\s.*\*\// # /* comment */ type comment # if doxy == 1 # # should be included only in the example code @@ -85,6 +90,8 @@ while gets buf.push($_.gsub!(/\/\*+/, " ")) doxy = 1 + when /\/\*/ #other comment + when /EXAMPLE_CODE/ #start example code lines buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Example:\n @code"))