diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-06-28 14:29:12 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-06-28 14:51:49 +0900 |
commit | 51be2cf6d23466e173ad66eac9a4b3ae32097cc4 (patch) | |
tree | d4be3f0ffc5f5b571f0c07cb1d017752b9eab8ac /lib/rdoc/parser | |
parent | aba804ef91a5b2aa88efdd74205026aca3f943b2 (diff) |
[ruby/rdoc] Parse also InitVM-prefixed functions
Initialization depending on VM is separated.
https://github.com/ruby/rdoc/commit/030d10fccd
Diffstat (limited to 'lib/rdoc/parser')
-rw-r--r-- | lib/rdoc/parser/c.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb index 52317c5ad8..83a216a8ac 100644 --- a/lib/rdoc/parser/c.rb +++ b/lib/rdoc/parser/c.rb @@ -720,7 +720,7 @@ class RDoc::Parser::C < RDoc::Parser ((?>/\*.*?\*/\s+)) (static\s+)? void\s+ - Init_#{class_name}\s*(?:_\(\s*)?\(\s*(?:void\s*)?\)%xmi then + Init(?:VM)?_(?i:#{class_name})\s*(?:_\(\s*)?\(\s*(?:void\s*)?\)%xm then comment = $1.sub(%r%Document-(?:class|module):\s+#{class_name}%, '') elsif @content =~ %r%Document-(?:class|module):\s+#{class_name}\s*? (?:<\s+[:,\w]+)?\n((?>.*?\*/))%xm then |