summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-02-06 15:28:04 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-02-06 15:28:04 (GMT)
commitee2d6faecab57c1f929d6868ae6eb9bdaa53d654 (patch)
tree3286fe6b94a657a7ad13a80ebdd1e6ecf5596762
parent50720068afa77484ec7253e7dca1e812050b33f1 (diff)
downloadDoxygen-ee2d6faecab57c1f929d6868ae6eb9bdaa53d654.zip
Doxygen-ee2d6faecab57c1f929d6868ae6eb9bdaa53d654.tar.gz
Doxygen-ee2d6faecab57c1f929d6868ae6eb9bdaa53d654.tar.bz2
Bug 752712 - last entry missing in a @name group of typedefs
-rw-r--r--src/commentcnv.l6
-rw-r--r--src/scanner.l5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 5457738..169f66a 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -379,6 +379,12 @@ void replaceComment(int offset);
g_inRoseComment=TRUE;
BEGIN(SComment);
}
+<Scan>"//"[!\/]/.*\n[ \t]*"//"[|\/][ \t]*[@\\]"}" { // next line contains an end marker, see bug 752712
+ g_inSpecialComment=yytext[2]=='/' || yytext[2]=='!';
+ copyToOutput(yytext,(int)yyleng);
+ g_readLineCtx=YY_START;
+ BEGIN(ReadLine);
+ }
<Scan>"//"/.*\n { /* one line C++ comment */
g_inSpecialComment=yytext[2]=='/' || yytext[2]=='!';
copyToOutput(yytext,(int)yyleng);
diff --git a/src/scanner.l b/src/scanner.l
index 9ccd628..6e94a20 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -6224,6 +6224,11 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
handleCommentBlock(docBlock.data(),current->brief.isEmpty());
BEGIN( docBlockContext );
}
+<DocLine>[^\n]*/"\n"{B}*"//"[!/]{B}*{CMD}"}" { // next line is an end group marker, see bug 752712
+ docBlock+=yytext;
+ handleCommentBlock(docBlock.data(),current->brief.isEmpty());
+ BEGIN( docBlockContext );
+ }
<DocLine>[^\n]*/"\n" { // whole line
docBlock+=yytext;
handleCommentBlock(docBlock.data(),current->brief.isEmpty());