summaryrefslogtreecommitdiff
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 10:52:06 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 10:52:06 +0900
commitb3e03c958bd4534210bdb8d87ab0b56ada4562fb (patch)
treef3aacdae9418762e601ca1d3cb430065b2d5c312 /src/commentcnv.l
parenta65b883ee4bf1831f586218430470f0a493bbe5a (diff)
downloaddoxygen-b3e03c958bd4534210bdb8d87ab0b56ada4562fb.tar.gz
doxygen-b3e03c958bd4534210bdb8d87ab0b56ada4562fb.tar.bz2
doxygen-b3e03c958bd4534210bdb8d87ab0b56ada4562fb.zip
Imported Upstream version 1.8.9upstream/1.8.9
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index ec56b90..64e18be 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -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;
@@ -1004,7 +1011,7 @@ void convertCppComments(BufStr *inBuf,BufStr *outBuf,const char *fileName)
warn(g_fileName,ctx->lineNr,"Conditional section%sdoes not have "
"a corresponding \\endcond command within this file.",sectionInfo.data());
}
- if (g_nestingCount>0 || (YY_START==CComment && g_lang!=SrcLangExt_Markdown))
+ if (g_nestingCount>0 && g_lang!=SrcLangExt_Markdown)
{
QCString tmp= "(probable line reference: ";
bool first = TRUE;