1
0
forked from Mirror/wren

Fix "%" in error message.

This commit is contained in:
Bob Nystrom
2015-12-05 10:15:18 -08:00
parent 37b70db1b0
commit 0f9e2a49ce

View File

@ -782,7 +782,7 @@ static void readString(Parser* parser)
if (parser->numParens < MAX_INTERPOLATION_NESTING)
{
// TODO: Allow format string.
if (nextChar(parser) != '(') lexError(parser, "Expect '(' after '%'.");
if (nextChar(parser) != '(') lexError(parser, "Expect '(' after '%%'.");
parser->parens[parser->numParens] = 1;
parser->numParens++;