Mercurial > projects > dil
diff trunk/src/cmd/Generate.d @ 763:f26f13b5a3a3
Fixed code in scanSpecialTokenSequence().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 16 Feb 2008 01:47:39 +0100 |
parents | 307905dadf5d |
children | ef9bee5a2d61 |
line wrap: on
line diff
--- a/trunk/src/cmd/Generate.d Sat Feb 16 00:52:43 2008 +0100 +++ b/trunk/src/cmd/Generate.d Sat Feb 16 01:47:39 2008 +0100 @@ -410,20 +410,14 @@ } // Print whitespace between #line and number. - auto ptr = token.start; - printWS(ptr, num.start); // Prints "#line" as well. - printToken(num, tags, print2); + printWS(token.start, num.start); // Prints "#line" as well. + printToken(num, tags, print2); // Print the number. if (auto filespec = token.tokLineFilespec) { // Print whitespace between number and filespec. printWS(num.end, filespec.start); print2.format(tags.Filespec, xml_escape(filespec.srcText)); - ptr = filespec.end; } - else - ptr = num.end; - // Print remaining whitespace - printWS(ptr, token.end); // Finally print the whole token. print.format(formatStr, cast(char[])buffer.slice()); break;