From c922e508049ebd8a36be0b86d512375c26b19ee7 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 17 Sep 2009 04:12:38 +0000 Subject: [PATCH] * lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): parse also rdoc files. * doc/re.rdoc: renamed from re.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .document | 3 ++- doc/{re.rb => re.rdoc} | 0 lib/rdoc/parser/ruby.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename doc/{re.rb => re.rdoc} (100%) diff --git a/.document b/.document index b41b4d08b0..746ca2929d 100644 --- a/.document +++ b/.document @@ -15,4 +15,5 @@ lib ext -doc/re.rb +# rdoc files +doc/*.rdoc diff --git a/doc/re.rb b/doc/re.rdoc similarity index 100% rename from doc/re.rb rename to doc/re.rdoc diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb index cf6c1ad221..fde3964a60 100644 --- a/lib/rdoc/parser/ruby.rb +++ b/lib/rdoc/parser/ruby.rb @@ -1458,7 +1458,7 @@ end class RDoc::Parser::Ruby < RDoc::Parser - parse_files_matching(/\.rbw?$/) + parse_files_matching(/\.(?:rbw?|rdoc)\z/) include RDoc::RubyToken include RDoc::TokenStream