File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -546,24 +546,28 @@ MAILADR ("mailto:")?[a-z_A-Z0-9.+-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z
546
546
}
547
547
}
548
548
<CComment>\n { /* new line in comment */
549
- copyToOutput(yyscanner,yytext,(int)yyleng);
549
+ copyToOutput(yyscanner,yytext,(int)yyleng);
550
550
/* in case of Fortran always end of comment */
551
551
if (yyextra->lang==SrcLangExt_Fortran)
552
552
{
553
553
BEGIN(Scan);
554
554
}
555
555
}
556
556
<CComment>"/"+"*" { /* nested C comment */
557
- if ((yyextra->lang==SrcLangExt_Python) || (yyextra->lang==SrcLangExt_Tcl))
557
+ if (yyextra->lang==SrcLangExt_Python ||
558
+ yyextra->lang==SrcLangExt_Tcl ||
559
+ yyextra->lang==SrcLangExt_Markdown)
558
560
{
559
561
REJECT;
560
562
}
561
563
yyextra->nestingCount++;
562
564
yyextra->commentStack.push(new CommentCtx(yyextra->lineNr));
563
- copyToOutput(yyscanner,yytext,(int)yyleng);
565
+ copyToOutput(yyscanner,yytext,(int)yyleng);
564
566
}
565
567
<CComment>"*"+"/" { /* end of C comment */
566
- if ((yyextra->lang==SrcLangExt_Python) || (yyextra->lang==SrcLangExt_Tcl))
568
+ if (yyextra->lang==SrcLangExt_Python ||
569
+ yyextra->lang==SrcLangExt_Tcl ||
570
+ yyextra->lang==SrcLangExt_Markdown)
567
571
{
568
572
REJECT;
569
573
}
You can’t perform that action at this time.
0 commit comments