summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-29 16:39:14 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-29 16:39:14 +0000
commite030cc8abb3a2f2493e3f711dedf5e4cd1a9f859 (patch)
tree9456752fa72c0fb2b4c7e9ca53ae21e4b0ece3e9
parent183a9861c13b446704c51dc76aa463c86c8a7d11 (diff)
downloadruby-e030cc8abb3a2f2493e3f711dedf5e4cd1a9f859.tar.gz
ruby-e030cc8abb3a2f2493e3f711dedf5e4cd1a9f859.tar.xz
ruby-e030cc8abb3a2f2493e3f711dedf5e4cd1a9f859.zip
* tool/strip-rdocs.rb: supports QT style doxy-comments.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 7a8b4c6f9..1b665b99b 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 205aeccca..dc4c3dc5d 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