Skip to content

Commit

Permalink
Fixed problem finding \enduml when using /// style comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Sep 26, 2014
1 parent 2b6d6bf commit 4df5291
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/commentcnv.l
Original file line number Diff line number Diff line change
Expand Up @@ -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]*) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4df5291

Please sign in to comment.