Mercurial > projects > dil
changeset 221:f26a2beb745e
- Moved ++p below if-statement.
author | aziz |
---|---|
date | Thu, 26 Jul 2007 18:13:04 +0000 |
parents | 0c647e319b8e |
children | 4f31e4671e06 |
files | trunk/src/Lexer.d |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/Lexer.d Thu Jul 26 16:37:05 2007 +0000 +++ b/trunk/src/Lexer.d Thu Jul 26 18:13:04 2007 +0000 @@ -572,7 +572,7 @@ case '\n': ++p; ++loc; - buffer ~= '\n'; + buffer ~= '\n'; // Convert EndOfLine to \n. continue; case 0, _Z_: error(MID.UnterminatedString); @@ -582,7 +582,6 @@ { // char* begin = p; dchar d = decodeUTF8(); - ++p; if (d == LSd || d == PSd) goto case '\n'; @@ -590,6 +589,7 @@ // invalid, skipped utf-8 sequences. See decodeUTF8(). // ++p; // buffer ~= begin[0 .. p - begin]; + ++p; encodeUTF8(buffer, d); continue; }