@@ -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