diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-29 16:39:14 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-29 16:39:14 +0000 |
commit | d6ef893798f27a335eef884b8bff717f09936a23 (patch) | |
tree | 9456752fa72c0fb2b4c7e9ca53ae21e4b0ece3e9 | |
parent | ad1d5a3c3135afd762b856f3b817f2780a0e51bf (diff) |
* tool/strip-rdocs.rb: supports QT style doxy-comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | tool/strip-rdoc.rb | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -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 |