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 | e030cc8abb3a2f2493e3f711dedf5e4cd1a9f859 (patch) | |
| tree | 9456752fa72c0fb2b4c7e9ca53ae21e4b0ece3e9 /tool | |
| parent | 183a9861c13b446704c51dc76aa463c86c8a7d11 (diff) | |
| download | ruby-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
Diffstat (limited to 'tool')
| -rw-r--r-- | tool/strip-rdoc.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
