Permalink
Browse files

Fixed problem finding \enduml when using /// style comments.

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Sep 26, 2014
1 parent 2b6d6bf commit 4df52916170bb81179697d0fa78c7d81fd95415f
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/commentcnv.l
View
@@ -450,7 +450,14 @@ void replaceComment(int offset);
copyToOutput(yytext,(int)yyleng);
g_lastCommentContext = YY_START;
g_javaBlock=0;
g_blockName=&yytext[1];
if (qstrcmp(&yytext[1],"startuml")==0)
{
g_blockName="uml";
}
else
{
g_blockName=&yytext[1];
}
BEGIN(VerbatimCode);
}
<CComment,ReadLine>[\\@]("f$"|"f["|"f{"[a-z]*) {
@@ -554,7 +561,7 @@ void replaceComment(int offset);
copyToOutput(yytext,(int)yyleng);
}
<Verbatim>^[ \t]*"///" {
if (g_blockName=="dot" || g_blockName=="msc" || g_blockName=="startuml" || g_blockName.at(0)=='f')
if (g_blockName=="dot" || g_blockName=="msc" || g_blockName=="uml" || g_blockName.at(0)=='f')
{
// see bug 487871, strip /// from dot images and formulas.
int l=0;

0 comments on commit 4df5291

Please sign in to comment.