diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-06-22 10:44:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-22 10:44:09 (GMT) |
commit | 8e19ed1c20261572d305503236a6d4299beee34a (patch) | |
tree | a2132fe3f1a3074977347069dc39e29b168999fa /src/docbookvisitor.cpp | |
parent | e0937f32cab960bf91f489360825b0eff297383a (diff) | |
parent | 313cc456d52ccf41f7b32adc3d0400cb7992549d (diff) | |
download | Doxygen-8e19ed1c20261572d305503236a6d4299beee34a.zip Doxygen-8e19ed1c20261572d305503236a6d4299beee34a.tar.gz Doxygen-8e19ed1c20261572d305503236a6d4299beee34a.tar.bz2 |
Merge pull request #7034 from albert-github/feature/issue_7033
issue #7033 Syntax highlighting doesn't work when calling \dontinclude from Markdown files
Diffstat (limited to 'src/docbookvisitor.cpp')
-rw-r--r-- | src/docbookvisitor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/docbookvisitor.cpp b/src/docbookvisitor.cpp index 64425c6..73db25f 100644 --- a/src/docbookvisitor.cpp +++ b/src/docbookvisitor.cpp @@ -472,7 +472,9 @@ DB_VIS_C pushEnabled(); m_hide = TRUE; } - SrcLangExt langExt = getLanguageFromFileName(m_langExt); + QCString locLangExt = getFileNameExtension(op->includeFileName()); + if (locLangExt.isEmpty()) locLangExt = m_langExt; + SrcLangExt langExt = getLanguageFromFileName(locLangExt); if (op->type()!=DocIncOperator::Skip) { popEnabled(); @@ -485,7 +487,7 @@ DB_VIS_C 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(), |