Skip to content

Commit 6b13bce

Browse files
committed
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.
1 parent 198165c commit 6b13bce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/markdown.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2729,6 +2729,7 @@ void MarkdownOutlineParser::parseInput(const char *fileName,
27292729
}
27302730
int lineNr=1;
27312731

2732+
p->commentScanner.enterFile(fileName,lineNr);
27322733
Protection prot=Public;
27332734
bool needsEntry = FALSE;
27342735
int position=0;
@@ -2760,6 +2761,7 @@ void MarkdownOutlineParser::parseInput(const char *fileName,
27602761
{
27612762
root->moveToSubEntryAndKeep(current);
27622763
}
2764+
p->commentScanner.leaveFile(fileName,lineNr);
27632765
}
27642766

27652767
void MarkdownOutlineParser::parsePrototype(const char *text)

0 commit comments

Comments
 (0)