Skip to content

Commit

Permalink
Fix rb_define_class_under parsing
Browse files Browse the repository at this point in the history
The first argument is an identifier so we need to skip over it.

Really fixes #327
  • Loading branch information
drbrain committed Nov 28, 2014
1 parent 58eee42 commit d23cc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdoc/parser/c.rb
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def find_class_comment class_name, class_mod
([\w\.\s]+\s* = \s+)?rb_define_(class|module)[\t (]*?"(#{class_name})"%xm then
comment = $1
elsif @content =~ %r%((?>/\*.*?\*/\s+))
([\w\. \t]+ = \s+)?rb_define_(class|module)_under[\t (]*?"(#{class_name.split('::').last})"%xm then
([\w\. \t]+ = \s+)?rb_define_(class|module)_under[\t\w, (]*?"(#{class_name.split('::').last})"%xm then
comment = $1
else
comment = ''
Expand Down

0 comments on commit d23cc03

Please sign in to comment.