From 1206a9b9b49cdd904c1b5f003c874acd94472806 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 18 Sep 2020 21:04:53 +0200 Subject: Fortran comments with C comments inside (#8000) When having a (stripped down) example like: ``` ! !!/*T !T*/ ``` we get a warning like: ``` .../ex11f.F90:4: warning: Reached end of file while still inside a (nested) comment. Nesting level 1 (probable line reference: 2, 2) ``` even though Fortran has no nested comments, and certainly doesn't have `/*` as comment signs. So message can be ignored. --- src/commentcnv.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commentcnv.l b/src/commentcnv.l index 2cf1a39..036f830 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -1167,7 +1167,7 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName) warn(yyextra->fileName,ctx->lineNr,"Conditional section%sdoes not have " "a corresponding \\endcond command within this file.",sectionInfo.data()); } - if (yyextra->nestingCount>0 && yyextra->lang!=SrcLangExt_Markdown) + if (yyextra->nestingCount>0 && yyextra->lang!=SrcLangExt_Markdown && yyextra->lang!=SrcLangExt_Fortran) { QCString tmp= "(probable line reference: "; bool first = TRUE; -- cgit v0.12