summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--tool/strip-rdoc.rb6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a8b4c6f94..1b665b99b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jun 30 01:35:12 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/strip-rdocs.rb: supports QT style doxy-comments.
+
Tue Jun 30 01:24:10 2009 Tadayoshi Funaba <tadf@dotrb.org>
* lib/cmath.rb (log2, cbrt): added. [experimental]
diff --git a/tool/strip-rdoc.rb b/tool/strip-rdoc.rb
index 205aecccac..dc4c3dc5dc 100644
--- a/tool/strip-rdoc.rb
+++ b/tool/strip-rdoc.rb
@@ -1,8 +1,8 @@
#!ruby
source = ARGF.read
-source = source.gsub(%r{/\*\*((?!\*/).+?)\*/}m) do |comment|
- comment = $1
+source = source.gsub(%r{/\*([!*])((?!\*/).+?)\*/}m) do |comment|
+ marker, comment = $1, $2
next "/**#{comment}*/" unless /^\s*\*\s?\-\-\s*$/ =~ comment
doxybody = nil
comment.each_line do |line|
@@ -17,6 +17,6 @@ source = source.gsub(%r{/\*\*((?!\*/).+?)\*/}m) do |comment|
end
end
end
- "/**#{doxybody}*/"
+ "/*#{marker}#{doxybody}*/"
end
print source