diff options
author | albert-github <albert.tests@gmail.com> | 2020-09-25 16:43:14 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-09-25 16:43:14 (GMT) |
commit | 6b13bce96c7845c139b7e481c49d5d540f6633d7 (patch) | |
tree | 8fe01dd8cfbb0419e00c87bde096ab6edaa8c60b | |
parent | 198165cc87a10dd92d1822d36496045f832b51f5 (diff) | |
download | Doxygen-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.
-rw-r--r-- | src/markdown.cpp | 2 |
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) |