summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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