@@ -388,6 +388,15 @@ SLASHopt [/]*
388388<Scan>\n { /* new line */
389389 copyToOutput(yyscanner,yytext,yyleng);
390390 }
391+ <Scan>{CPPC}[!/]/.*\n [ \t ]*{CPPC}[!/][ \t ]*{CMD}"}" { // see bug #8731, don' t treat multiline C++ comment as detailed description
392+ // if the next line is an end of group marker.
393+ yyextra->inSpecialComment=true ;
394+ yyextra->blockHeadCol=yyextra->col+1 ;
395+ yyextra->insertCppCommentMarker=true ;
396+ copyToOutput (yyscanner,yytext,yyleng);
397+ yyextra->readLineCtx=YY_START;
398+ BEGIN (ReadLine);
399+ }
391400<Scan>{CPPC}" !" /.*\n[ \t]*{CPPC}[\/!][^\/] | /* start C++ style special comment block */
392401<Scan>({CPPC}" /" [/]*)/[^/].*\n[ \t]*{CPPC}[\/!][^\/] { /* start C++ style special comment block */
393402 if (yyextra->mlBrief )
@@ -437,12 +446,12 @@ SLASHopt [/]*
437446 BEGIN (ReadLine);
438447 }
439448<Scan>{CPPC}[!/]/.*\n { /* one line special C++ comment */
440- yyextra->inSpecialComment=true;
441- yyextra->blockHeadCol=yyextra->col+1;
449+ yyextra->inSpecialComment =true ;
450+ yyextra->blockHeadCol =yyextra->col +1 ;
442451 yyextra->insertCppCommentMarker =true ;
443- copyToOutput(yyscanner,yytext,yyleng);
444- yyextra->readLineCtx=YY_START;
445- BEGIN(ReadLine);
452+ copyToOutput (yyscanner,yytext,yyleng);
453+ yyextra->readLineCtx =YY_START;
454+ BEGIN (ReadLine);
446455 }
447456<Scan>{CPPC}/.*\n { /* one line normal C++ comment */
448457 yyextra->inSpecialComment =false ;
0 commit comments