summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-30 18:34:15 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-30 18:34:15 (GMT)
commite55c2248b46d5580e5b184d2ff9c773f333308b2 (patch)
tree78e375caf67e26d4d2857a94d25a508a67bf64b8 /src/pyscanner.l
parentabf1e46f7bc2c31972d36231b4672580704fcc10 (diff)
downloadDoxygen-e55c2248b46d5580e5b184d2ff9c773f333308b2.zip
Doxygen-e55c2248b46d5580e5b184d2ff9c773f333308b2.tar.gz
Doxygen-e55c2248b46d5580e5b184d2ff9c773f333308b2.tar.bz2
Make commentscan.l reentrant
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r--src/pyscanner.l6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index e8e393a..c2a8a88 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -53,6 +53,7 @@
#include "commentscan.h"
#include "pycode.h"
#include "arguments.h"
+#include "markdown.h"
// Toggle for some debugging info
//#define DBG_CTX(x) fprintf x
@@ -66,6 +67,7 @@
struct pyscannerYY_state
{
pyscannerYY_state() : packageNameCache(257) {}
+ CommentScanner commentScanner;
OutlineParserInterface *thisParser = 0;
const char * inputString = 0;
int inputPosition = 0;
@@ -1617,8 +1619,8 @@ static void handleCommentBlock(yyscan_t yyscanner,const QCString &doc,bool brief
int position = 0;
bool needsEntry;
int lineNr = brief ? yyextra->current->briefLine : yyextra->current->docLine;
- QCString processedDoc = preprocessCommentBlock(doc,yyextra->yyFileName,lineNr);
- while (parseCommentBlock(
+ QCString processedDoc = processMarkdownForCommentBlock(doc,yyextra->yyFileName,lineNr);
+ while (yyextra->commentScanner.parseCommentBlock(
yyextra->thisParser,
(yyextra->docBlockInBody && yyextra->previous) ? yyextra->previous.get() : yyextra->current.get(),
processedDoc, // text