Skip to content

Commit a771ef9

Browse files
authored
Merge pull request doxygen#11353 from albert-github/feature/bug_commentcnv_comment
Consistent translation of `//!` comments
2 parents 976c498 + b11acd7 commit a771ef9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/commentcnv.l

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,14 @@ SLASHopt [/]*
401401
while (i<(int)yyleng && yytext[i]=='/') i++;
402402
}
403403
yyextra->blockHeadCol=yyextra->col+1;
404-
copyToOutput(yyscanner,"/**");
404+
if (yytext[2] == '!')
405+
{
406+
copyToOutput(yyscanner,"/*!");
407+
}
408+
else
409+
{
410+
copyToOutput(yyscanner,"/**");
411+
}
405412
if (i<yyleng) replaceAliases(yyscanner,yytext+i);
406413
yyextra->inSpecialComment=TRUE;
407414
//BEGIN(SComment);

0 commit comments

Comments
 (0)