Skip to content

Commit d23cc03

Browse files
committed
Fix rb_define_class_under parsing
The first argument is an identifier so we need to skip over it. Really fixes #327
1 parent 58eee42 commit d23cc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/c.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def find_class_comment class_name, class_mod
749749
([\w\.\s]+\s* = \s+)?rb_define_(class|module)[\t (]*?"(#{class_name})"%xm then
750750
comment = $1
751751
elsif @content =~ %r%((?>/\*.*?\*/\s+))
752-
([\w\. \t]+ = \s+)?rb_define_(class|module)_under[\t (]*?"(#{class_name.split('::').last})"%xm then
752+
([\w\. \t]+ = \s+)?rb_define_(class|module)_under[\t\w, (]*?"(#{class_name.split('::').last})"%xm then
753753
comment = $1
754754
else
755755
comment = ''

0 commit comments

Comments
 (0)