summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-04-09 18:46:16 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-04-09 18:46:16 (GMT)
commit3120c6832bd3b2df0ecac2ccb08ddcdacd5575ed (patch)
treefd63e43b2dca7528a3a4ac6ae45bf46fb3fc0ea3 /src/scanner.l
parente5d8b060f74171bb27a1783d313429b0198ef42b (diff)
downloadDoxygen-3120c6832bd3b2df0ecac2ccb08ddcdacd5575ed.zip
Doxygen-3120c6832bd3b2df0ecac2ccb08ddcdacd5575ed.tar.gz
Doxygen-3120c6832bd3b2df0ecac2ccb08ddcdacd5575ed.tar.bz2
Release 1.1.2
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index ff2e61a..589bbff 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -355,6 +355,16 @@ static void endTable()
curTable=tableStack.top();
}
+static void forceEndTable()
+{
+ err("Error: More <table> tags found than </table> "
+ "tags in documentation block in file %s!\n",yyFileName);
+ while (!tableStack.isEmpty())
+ {
+ endTable();
+ }
+}
+
//-----------------------------------------------------------------------------
static void lineCount()
@@ -4854,6 +4864,10 @@ void parseDocument(OutputList &ol,const QCString &docString)
{
warn("Warning: Documentation block contains \\if without matching \\endif: %d\n",depthIf);
}
+ if (!tableStack.isEmpty())
+ {
+ forceEndTable();
+ }
ol+=*outDoc;
delete outDoc; outDoc=0;
return;