From 21d14b3c7697f8807065070f5850259b1b6550e4 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 26 Jul 2015 15:17:44 +0200 Subject: Bug 752712 - last entry missing in a @name group of typedefs --- src/commentcnv.l | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/commentcnv.l b/src/commentcnv.l index 8823b68..8762b6a 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -704,6 +704,14 @@ void replaceComment(int offset); g_readLineCtx=YY_START; BEGIN(ReadLine); } +\n[ \t]*"//"[\/!]("<")?[ \t]*[\\@]"}".*\n { + /* See Bug 752712: end the multiline comment when finding a @} or \} command */ + copyToOutput(" */",3); + copyToOutput(yytext,(int)yyleng); + g_inSpecialComment=FALSE; + g_inRoseComment=FALSE; + BEGIN(Scan); + } \n[ \t]*"///"[^\/\n]/.*\n { replaceComment(1); g_readLineCtx=YY_START; -- cgit v0.12