summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-09-25 16:43:14 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-09-25 16:43:14 (GMT)
commit6b13bce96c7845c139b7e481c49d5d540f6633d7 (patch)
tree8fe01dd8cfbb0419e00c87bde096ab6edaa8c60b /src/markdown.cpp
parent198165cc87a10dd92d1822d36496045f832b51f5 (diff)
downloadDoxygen-6b13bce96c7845c139b7e481c49d5d540f6633d7.zip
Doxygen-6b13bce96c7845c139b7e481c49d5d540f6633d7.tar.gz
Doxygen-6b13bce96c7845c139b7e481c49d5d540f6633d7.tar.bz2
No warning for unbalanced brackets in markdown
When we have the input files qq.md. ``` @page xxx0 yyy0 @} Start of text @page xxx1 yyy1 @{ Start of text ``` and qqh.h: ``` /** @page xxxh0 yyyh0 @} Start of texth */ /** @page xxxh1 yyyh1 @{ Start of texth */ ``` we get the warnings: ``` qq.md:3: warning: unbalanced grouping commands qqh.h:4: warning: unbalanced grouping commands qqh.h:15: warning: end of file with unbalanced grouping commands ``` ``` so we are missing ``` qq.md:9: warning: end of file with unbalanced grouping commands ``` due to the fact that the closing routine was not called (also the open routine was not called, always good to call it the set variables to their proper values.
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 8e259a3..e268c48 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2729,6 +2729,7 @@ void MarkdownOutlineParser::parseInput(const char *fileName,
}
int lineNr=1;
+ p->commentScanner.enterFile(fileName,lineNr);
Protection prot=Public;
bool needsEntry = FALSE;
int position=0;
@@ -2760,6 +2761,7 @@ void MarkdownOutlineParser::parseInput(const char *fileName,
{
root->moveToSubEntryAndKeep(current);
}
+ p->commentScanner.leaveFile(fileName,lineNr);
}
void MarkdownOutlineParser::parsePrototype(const char *text)