From dd0920f6b863bba58b0a64e7e983469380b29033 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 17 Aug 2019 18:21:45 +0200 Subject: Strange '*/' in Fortran nad Markdown with conditional sections In case of a construct like (Markdown, analogous for Fortran): ``` test text @cond: after cond whatever @endcond some more text ``` we get a `*/` after `test text` that should not be present. Other places exclude besides Pyton and VHDL also Fortran and Markdown and that should happen here as well. --- src/commentcnv.l | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commentcnv.l b/src/commentcnv.l index a5dd0af..2550227 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -914,7 +914,9 @@ void replaceComment(int offset); { //printf("** Adding terminator for comment!\n"); if (g_lang!=SrcLangExt_Python && - g_lang!=SrcLangExt_VHDL) + g_lang!=SrcLangExt_VHDL && + g_lang!=SrcLangExt_Markdown && + g_lang!=SrcLangExt_Fortran) { ADDCHAR('*'); ADDCHAR('/'); -- cgit v0.12