blob: d8e311cdbf490d46151ee112b94b7b9be755ee08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!ruby
# frozen_string_literal: true
# Filter for preventing Doxygen from processing RDoc comments.
# Used by the Doxygen template.
print ARGF.binmode.read.tap {|src|
src.gsub!(%r|(/\*[!*])(?:(?!\*/).)+?^\s*\*\s?\-\-\s*$(.+?\*/)|m) {
marker = $1
comment = $2
comment.sub!(%r|^\s*\*\s?\+\+\s*$.+?(\s*\*/)\z|m, '\\1')
marker + comment
}
}
|