1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rdoc] Fix parsing of rb_define_module_under

Fixes Ruby Bug #15819

https://github.com/ruby/rdoc/commit/94a052d833
This commit is contained in:
Jeremy Evans 2020-06-11 15:02:28 -07:00 committed by aycabta
parent f76d67f484
commit 38480ad507

View file

@ -318,7 +318,7 @@ class RDoc::Parser::C < RDoc::Parser
\s*"(?<module_name_1>\w+)"\s*
\)
|
_under\s*\( # rb_define_module_under(module_under, module_name_1)
_under\s*\( # rb_define_module_under(module_under, module_name_2)
\s*(?<module_under>\w+),
\s*"(?<module_name_2>\w+)"
\s*\)