# HG changeset patch # User Aziz K?ksal # Date 1197741623 -3600 # Node ID 9ebc799c7dc554b690f4c346e9532ec3bf22bd4a # Parent 8f86bb9ef715e4d1a1e48aa3e86285feb6513e08 Fixes in dil.Parser. diff -r 8f86bb9ef715 -r 9ebc799c7dc5 trunk/src/dil/Lexer.d --- a/trunk/src/dil/Lexer.d Sat Dec 15 18:55:06 2007 +0100 +++ b/trunk/src/dil/Lexer.d Sat Dec 15 19:00:23 2007 +0100 @@ -2531,12 +2531,12 @@ return d; } - private void encodeUTF8(ref char[] str, dchar d) + static void encodeUTF8(ref char[] str, dchar d) { - char[6] b = void; assert(!isascii(d), "check for ASCII char before calling encodeUTF8()."); assert(isValidChar(d), "check if character is valid before calling encodeUTF8()."); + char[6] b = void; if (d < 0x800) { b[0] = 0xC0 | (d >> 6); diff -r 8f86bb9ef715 -r 9ebc799c7dc5 trunk/src/dil/Parser.d --- a/trunk/src/dil/Parser.d Sat Dec 15 18:55:06 2007 +0100 +++ b/trunk/src/dil/Parser.d Sat Dec 15 19:00:23 2007 +0100 @@ -2160,7 +2160,6 @@ if (next == T.Comma || next == T.Semicolon || next == T.RParen) { ident = requireIdentifier(MSG.ExpectedVariableName); - nT(); break; } // fall through @@ -4465,7 +4464,7 @@ auto ExpectedTemplateName = "expected template name, not '{}'"; auto ExpectedAnIdentifier = "expected an identifier, not '{}'"; auto IllegalStatement = "illegal Statement found: "; - auto ExpectedNonEmptyStatement = "didn't expect ';', use { } instead"; + auto ExpectedNonEmptyStatement = "didn't expect ';', use {{ }} instead"; auto ExpectedScopeIdentifier = "expected 'exit', 'success' or 'failure', not '{}'"; auto InvalidScopeIdentifier = "'exit', 'success', 'failure' are valid scope identifiers, but not '{}';"; auto ExpectedIntegerAfterAlign = "expected an integer after align, not '{}'";