summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-26 18:47:31 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-26 18:47:31 (GMT)
commite269181624fce15fb669e4b146a0d2156926a29c (patch)
treea5b03c450fa264c61ef105c417679cfbb03e7613 /src/docparser.cpp
parent70a1b6e5339eb4f6d65c09d58bcfb464f8f96bd2 (diff)
parentf8ceac63bdb52cf395207258c98ff0bcba35870a (diff)
downloadDoxygen-e269181624fce15fb669e4b146a0d2156926a29c.zip
Doxygen-e269181624fce15fb669e4b146a0d2156926a29c.tar.gz
Doxygen-e269181624fce15fb669e4b146a0d2156926a29c.tar.bz2
Merge pull request #210 from albert-github/feature/snippet_from_current_file
Create an easy possibility to take a snippet from the current file.
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 8be11c6..3110779 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -5217,6 +5217,7 @@ void DocPara::handleInclude(const QCString &cmdName,DocInclude::Type t)
QCString blockId;
if (t==DocInclude::Snippet)
{
+ if (fileName == "this") fileName=g_fileName;
doctokenizerYYsetStateSnippet();
tok=doctokenizerYYlex();
doctokenizerYYsetStatePara();