diff options
author | albert-github <albert.tests@gmail.com> | 2015-01-21 18:50:26 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2015-01-21 18:50:26 (GMT) |
commit | 9771b807cd776b37f6538dec085442218a5b6a09 (patch) | |
tree | 613f8a13f935ed39b14edab21eed955498190a3f /src/config.l | |
parent | 7fea8a40916d9c2ed22821cdf228d6a066a3ddec (diff) | |
download | Doxygen-9771b807cd776b37f6538dec085442218a5b6a09.zip Doxygen-9771b807cd776b37f6538dec085442218a5b6a09.tar.gz Doxygen-9771b807cd776b37f6538dec085442218a5b6a09.tar.bz2 |
Based on the report of Peter D. Barnes in the doxygen forum (http://doxygen.10944.n7.nabble.com/doxygen-1-8-9-1-upgrade-errors-td6990.html)
All lines at the beginning of the file starting with ## are preserved at the beginning of the Doxyfile
Consecutive user comments (with +=) are now joined like the options are.
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.l b/src/config.l index 4fa3b1e..0002ecb 100644 --- a/src/config.l +++ b/src/config.l @@ -617,6 +617,13 @@ static void readIncludeFile(const char *incName) %% <*>\0x0d +/* + <PreStart>"##".*"\n" { config->appendStartComment(yytext);} + <PreStart>. { + BEGIN(Start); + REJECT; + } +*/ <Start,GetString,GetStrList,GetBool,SkipInvalid>"##".*"\n" { config->appendUserComment(yytext);} <Start,GetString,GetStrList,GetBool,SkipInvalid>"#" { BEGIN(SkipComment); } <Start>[a-z_A-Z][a-z_A-Z0-9]*[ \t]*"=" { QCString cmd=yytext; @@ -851,6 +858,12 @@ static void readIncludeFile(const char *incName) void Config::writeTemplate(FTextStream &t,bool sl,bool upd) { + /* print first lines of user comment that were at the beginning of the file, might have special meaning for editors */ + if (m_startComment) + { + t << takeStartComment(); + t << "\n"; + } t << "# Doxyfile " << versionString << endl << endl; if (!sl) { |