summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-11-19 19:59:24 (GMT)
committerGitHub <noreply@github.com>2017-11-19 19:59:24 (GMT)
commit4f45bd20d4da7d40c793ec4c4c13558581e995ac (patch)
tree303363451d2db1ff70951f444d9cf0f2be0177fa /src/docparser.cpp
parent353568560581bb40acb51f2908b6797ffbd57ff4 (diff)
parenteaf8edbac7e6a1873aa5c4ff0df063cd367351d6 (diff)
downloadDoxygen-4f45bd20d4da7d40c793ec4c4c13558581e995ac.zip
Doxygen-4f45bd20d4da7d40c793ec4c4c13558581e995ac.tar.gz
Doxygen-4f45bd20d4da7d40c793ec4c4c13558581e995ac.tar.bz2
Merge pull request #621 from mosra/xml-programlisting-filename
Propagate language information to all <programlisting> XML elements
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 5bb28ea..eac6e97 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -104,6 +104,7 @@ static QCString g_exampleName;
static SectionDict * g_sectionDict;
static QCString g_searchUrl;
+static QCString g_includeFileName;
static QCString g_includeFileText;
static uint g_includeFileOffset;
static uint g_includeFileLength;
@@ -1917,6 +1918,7 @@ void DocInclude::parse()
// fall through
case DontInclude:
readTextFileByName(m_file,m_text);
+ g_includeFileName = m_file;
g_includeFileText = m_text;
g_includeFileOffset = 0;
g_includeFileLength = m_text.length();
@@ -1954,6 +1956,7 @@ void DocInclude::parse()
void DocIncOperator::parse()
{
+ m_includeFileName = g_includeFileName;
const char *p = g_includeFileText;
uint l = g_includeFileLength;
uint o = g_includeFileOffset;