Skip to content

Commit 9b75105

Browse files
committed
issue doxygen#8731 grouping variables requires an empty line before closing @}
See to it that a comment block with `@}` is handled better after an inline comment.
1 parent 4e62f82 commit 9b75105

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/commentcnv.l

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,14 @@ SLASHopt [/]*
388388
<Scan>\n { /* new line */
389389
copyToOutput(yyscanner,yytext,yyleng);
390390
}
391+
<Scan>{CPPC}[!/]/.*\n[ \t]*{CPPC}[!/][ \t]*{CMD}"}" {
392+
yyextra->inSpecialComment=true;
393+
yyextra->blockHeadCol=yyextra->col+1;
394+
yyextra->insertCppCommentMarker=true;
395+
copyToOutput(yyscanner,yytext,yyleng);
396+
yyextra->readLineCtx=YY_START;
397+
BEGIN(ReadLine);
398+
}
391399
<Scan>{CPPC}"!"/.*\n[ \t]*{CPPC}[\/!][^\/] | /* start C++ style special comment block */
392400
<Scan>({CPPC}"/"[/]*)/[^/].*\n[ \t]*{CPPC}[\/!][^\/] { /* start C++ style special comment block */
393401
if (yyextra->mlBrief)
@@ -436,14 +444,6 @@ SLASHopt [/]*
436444
yyextra->readLineCtx=YY_START;
437445
BEGIN(ReadLine);
438446
}
439-
<Scan>{CPPC}[!/]/.*\n { /* one line special C++ comment */
440-
yyextra->inSpecialComment=true;
441-
yyextra->blockHeadCol=yyextra->col+1;
442-
yyextra->insertCppCommentMarker=true;
443-
copyToOutput(yyscanner,yytext,yyleng);
444-
yyextra->readLineCtx=YY_START;
445-
BEGIN(ReadLine);
446-
}
447447
<Scan>{CPPC}/.*\n { /* one line normal C++ comment */
448448
yyextra->inSpecialComment=false;
449449
copyToOutput(yyscanner,yytext,yyleng);

0 commit comments

Comments
 (0)