diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-08-22 19:30:14 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-08-22 19:30:14 (GMT) |
commit | 20bc00a80ad6bcda730a1762c3700c8f63fa16eb (patch) | |
tree | e5faa5e8d675f525b1cd2f397645136f8193b36f /src/scanner.l | |
parent | 4ad0d24c5b3a0afd99722ae5c33968ff9fa44e2d (diff) | |
download | Doxygen-20bc00a80ad6bcda730a1762c3700c8f63fa16eb.zip Doxygen-20bc00a80ad6bcda730a1762c3700c8f63fa16eb.tar.gz Doxygen-20bc00a80ad6bcda730a1762c3700c8f63fa16eb.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) { |