diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-06-22 10:50:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-06-22 10:50:15 (GMT) |
commit | 6b0238561f47da966d55305d9479af1e5cadf45c (patch) | |
tree | d5fc7e39ef822d2c2ebb3546c2e1a7509365f7d7 /src/mandocvisitor.cpp | |
parent | f919067d59fb8c83194e6f73fbe1a4731b1eded6 (diff) | |
parent | 8e19ed1c20261572d305503236a6d4299beee34a (diff) | |
download | Doxygen-6b0238561f47da966d55305d9479af1e5cadf45c.zip Doxygen-6b0238561f47da966d55305d9479af1e5cadf45c.tar.gz Doxygen-6b0238561f47da966d55305d9479af1e5cadf45c.tar.bz2 |
Merge branch 'master' of github.com:doxygen/doxygen
Diffstat (limited to 'src/mandocvisitor.cpp')
-rw-r--r-- | src/mandocvisitor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mandocvisitor.cpp b/src/mandocvisitor.cpp index 5c98c6f..e407642 100644 --- a/src/mandocvisitor.cpp +++ b/src/mandocvisitor.cpp @@ -367,7 +367,9 @@ void ManDocVisitor::visit(DocInclude *inc) void ManDocVisitor::visit(DocIncOperator *op) { - SrcLangExt langExt = getLanguageFromFileName(m_langExt); + QCString locLangExt = getFileNameExtension(op->includeFileName()); + if (locLangExt.isEmpty()) locLangExt = m_langExt; + SrcLangExt langExt = getLanguageFromFileName(locLangExt); //printf("DocIncOperator: type=%d first=%d, last=%d text=`%s'\n", // op->type(),op->isFirst(),op->isLast(),op->text().data()); if (op->isFirst()) @@ -393,7 +395,7 @@ void ManDocVisitor::visit(DocIncOperator *op) fd = createFileDef( cfi.dirPath().utf8(), cfi.fileName().utf8() ); } - Doxygen::parserManager->getParser(m_langExt) + Doxygen::parserManager->getParser(locLangExt) ->parseCode(m_ci,op->context(),op->text(),langExt, op->isExample(),op->exampleFile(), fd, // fileDef |