Skip to content

Commit 7445efe

Browse files
committed
Incorrect end of comment detected
- In case, in an item we have something like: `=item 1. Add*/Mod*/Del*/ - high-level` then the `*/` are after translation to cpp seen as end of comment. - Same accounts for something like (in normal running text) `RPerl/Test/*/*Bad*.pm` So they have to be escaped. As written with the proposed pull request #11 which was just for the first mentioned case "this might happen on other places as well, as soon as found they can be fixed in a similar way", the second case has been found as well. This proposed pull request supersedes the now withdrawn proposed pull request: #11 Note: end of comments in code section will be handled by doxygen in doxygen/doxygen#7026
1 parent b470a10 commit 7445efe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Doxygen/Filter/Perl.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ sub _ProcessPodCommentBlock
808808
Doxygen::Filter::Perl::POD->setAsLabel($self->{'_hData'}->{'filename'}->{'fullpath'});
809809
my $sPodParsedText = Doxygen::Filter::Perl::POD->print($pom);
810810

811+
$sPodParsedText =~ s/\*\/\*/\\*\‍\/\\*/g;
812+
$sPodParsedText =~ s/\/\*/\/\‍\\*/g;
813+
$sPodParsedText =~ s/\*\//\\*\‍\//g;
811814
$self->{'_hData'}->{'class'}->{$sClassName}->{'comments'} .= $sPodParsedText;
812815
}
813816

0 commit comments

Comments
 (0)