Revision
3204
Author
ernest.prabhakar@gmail.com
Date
2010-01-07 15:31:55 -0800 (Thu, 07 Jan 2010)

Log Message

Modified Rdoc c parser to work with rb_objc_define_method

Modified Paths

Diff

Modified: MacRuby/trunk/lib/rdoc/parser/c.rb (3203 => 3204)


--- MacRuby/trunk/lib/rdoc/parser/c.rb	2010-01-07 23:28:38 UTC (rev 3203)
+++ MacRuby/trunk/lib/rdoc/parser/c.rb	2010-01-07 23:31:55 UTC (rev 3204)
@@ -195,7 +195,7 @@
   end
 
   def do_methods
-    @content.scan(%r{rb_define_
+    @content.scan(%r{rb_(objc_)?define_
                    (
                       singleton_method |
                       method           |
@@ -208,7 +208,7 @@
                      \s*(-?\w+)\s*\)
                    (?:;\s*/[*/]\s+in\s+(\w+?\.[cy]))?
                  }xm) do
-      |type, var_name, meth_name, meth_body, param_count, source_file|
+      |objc, type, var_name, meth_name, meth_body, param_count, source_file|
 
       # Ignore top-object and weird struct.c dynamic stuff
       next if var_name == "ruby_top_self"