commentblock(buf)
buf = []
- when /\/\*\s.*\*\// # /* comment */ type comment
+ when /^\/\*\s.*\*\// # /* comment */ type comment
if doxy == 1
buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//")) # should be included only in the example code
+ end
+
+ when /\/\*\s.*\*\// # code + /* comment */ type comment
+ if doxy == 1
+ buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//")) # should be included in the example code
else
if doxy == 0
commentblock(buf)
print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code
end
end
+
when /\/\*{2,3}en.*\*\// #english one liner is omitted
when /\/\*\*ja.*\*\// #one liner
when /\/\*\*\*ja.*\*\// #one liner
- buf.push($_.gsub!(/\/\*+ja/, " ").gsub!(/\*\//, " "))
+ buf.push($_.gsub!(/\/\*+ja/, " ").gsub!(/\*\//, " ")).push("\n")
when /\/\*\*\s.*\*\// #one liner
when /\/\*\*\*\s.*\*\// #one liner
buf.push($_.gsub!(/\/\*+/, " ").gsub!(/\*\//, " ")).push("\n")
# Local Variables:
# coding: euc-jp
-# End:
\ No newline at end of file
+# End:
while gets
-# print "****", $_, "\n"
-
gsub!("@seealso", "@par See Also:")
gsub!("@errors", "@par Errors:")
gsub!("@returns", "@par Return value:")
if doxy == 1
buf.push($_.gsub!(/\*\//, " ").gsub!(/\/\*/, "//")) # should be included in the example code
else
- if doxy == 0
+ if doxy == 0
commentblock(buf)
buf = []
print $_.gsub!(/\/\*\s.*\*\//," ") # should be omiited in code