summaryrefslogtreecommitdiffstats
path: root/src/mandocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-06-22 10:50:15 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-06-22 10:50:15 (GMT)
commit6b0238561f47da966d55305d9479af1e5cadf45c (patch)
treed5fc7e39ef822d2c2ebb3546c2e1a7509365f7d7 /src/mandocvisitor.cpp
parentf919067d59fb8c83194e6f73fbe1a4731b1eded6 (diff)
parent8e19ed1c20261572d305503236a6d4299beee34a (diff)
downloadDoxygen-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.cpp6
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