projects
/
m17n
/
m17n-docs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[m17n/m17n-docs.git]
/
utils
/
usr_filter.rb
diff --git
a/utils/usr_filter.rb
b/utils/usr_filter.rb
index
cade553
..
52ac710
100755
(executable)
--- a/
utils/usr_filter.rb
+++ b/
utils/usr_filter.rb
@@
-45,6
+45,11
@@
while gets
commentblock(buf)
buf = []
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
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
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"))
when /EXAMPLE_CODE/
#start example code lines
buf.push($_.gsub!(/#if EXAMPLE_CODE/, "\n \n @par Example:\n @code"))