summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-17 04:12:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-17 04:12:38 +0000
commitc922e508049ebd8a36be0b86d512375c26b19ee7 (patch)
tree8dd9ee3479a82679fa6395a15b1bd1ca0ac76e6d
parent5a45c08ef25cc41d7c6889edc38529a74cc4280d (diff)
* 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
-rw-r--r--.document3
-rw-r--r--doc/re.rdoc (renamed from doc/re.rb)0
-rw-r--r--lib/rdoc/parser/ruby.rb2
3 files changed, 3 insertions, 2 deletions
diff --git a/.document b/.document
index b41b4d08b0b..746ca2929d1 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
index 9671a7bd0b0..9671a7bd0b0 100644
--- a/doc/re.rb
+++ b/doc/re.rdoc
diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb
index cf6c1ad2217..fde3964a60e 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