aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-06-11 15:02:28 -0700
committeraycabta <aycabta@gmail.com>2020-07-22 02:34:49 +0900
commit38480ad5078ac1d83031d6b9e25070508b9c034e (patch)
treeb5d9efe4c3d734d1adba372411e42b6b483468b0 /lib/rdoc
parentf76d67f484b55131f45586e5f515db61e9bd41e7 (diff)
downloadruby-38480ad5078ac1d83031d6b9e25070508b9c034e.tar.gz
[ruby/rdoc] Fix parsing of rb_define_module_under
Fixes Ruby Bug #15819 https://github.com/ruby/rdoc/commit/94a052d833
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/parser/c.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb
index 707a898975..deaef4dc79 100644
--- a/lib/rdoc/parser/c.rb
+++ b/lib/rdoc/parser/c.rb
@@ -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*\)