mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
Fix "%" in error message.
This commit is contained in:
@ -782,7 +782,7 @@ static void readString(Parser* parser)
|
|||||||
if (parser->numParens < MAX_INTERPOLATION_NESTING)
|
if (parser->numParens < MAX_INTERPOLATION_NESTING)
|
||||||
{
|
{
|
||||||
// TODO: Allow format string.
|
// TODO: Allow format string.
|
||||||
if (nextChar(parser) != '(') lexError(parser, "Expect '(' after '%'.");
|
if (nextChar(parser) != '(') lexError(parser, "Expect '(' after '%%'.");
|
||||||
|
|
||||||
parser->parens[parser->numParens] = 1;
|
parser->parens[parser->numParens] = 1;
|
||||||
parser->numParens++;
|
parser->numParens++;
|
||||||
|
|||||||
Reference in New Issue
Block a user