diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-08-22 19:30:14 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2010-08-22 19:30:14 (GMT) |
commit | ce8facca2c23f4656747ad3a5b4a8db475855e27 (patch) | |
tree | e5faa5e8d675f525b1cd2f397645136f8193b36f /src/scanner.l | |
parent | f0e47672cc3f910aebd1d30fe3db21e9dbd943c4 (diff) | |
download | Doxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.zip Doxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.tar.gz Doxygen-ce8facca2c23f4656747ad3a5b4a8db475855e27.tar.bz2 |
Release-1.7.1-20100822
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/scanner.l b/src/scanner.l index 3685157..3e7c6ca 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -5191,7 +5191,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) /* ---- Single line comments ------ */ <DocLine>[^\n]*"\n"[ \t]*"//"[/!] { // continuation of multiline C++-style comment docBlock+=yytext; - docBlock.resize(docBlock.size() - 3); + docBlock.resize(docBlock.length() - 3); yyLineNr++; } <DocLine>[^\n]*/"\n" { // whole line @@ -5487,7 +5487,13 @@ static void handleCommentBlock(const QCString &doc,bool brief) ) { //printf("parseCommentBlock position=%d [%s]\n",position,doc.data()+position); - if (needsEntry) newEntry(); + if (needsEntry) + { + QCString docFile = current->docFile; + newEntry(); + current->docFile = docFile; + current->docLine = lineNr; + } } if (needsEntry) { |