summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 23:50:48 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 23:50:48 +0000
commit52501b3f291c3e1c5291e1a474a594c5a7b361db (patch)
tree61c3c1405e5c1ce952da6074d9aa1f78898ff329
parentd9316374d4b73788cec34b5ea5d5072198bddf59 (diff)
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser): handle more
extensions. [ruby-dev:30972] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rdoc/parsers/parse_c.rb2
-rw-r--r--version.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb
index 1311c50..25fc66a 100644
--- a/lib/rdoc/parsers/parse_c.rb
+++ b/lib/rdoc/parsers/parse_c.rb
@@ -169,7 +169,7 @@ module RDoc
attr_accessor :progress
extend ParserFactory
- parse_files_matching(/\.(c|cc|cpp|CC)$/)
+ parse_files_matching(/\.(?:([CcHh])\1?|c([+xp])\2|y)\z/)
@@known_bodies = {}
diff --git a/version.h b/version.h
index eae95da..10c84da 100644
--- a/version.h
+++ b/version.h
@@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2007-08-22"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20070822
-#define RUBY_PATCHLEVEL 45
+#define RUBY_PATCHLEVEL 46
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8