forked from Mirror/wren
Merge pull request #615 from iwillspeak/repl-escape-fix
Fixup Handling of `\` in REPL to Prevent Crash
This commit is contained in:
@ -828,7 +828,7 @@ class Lexer {
|
||||
|
||||
if (c == Chars.backslash) {
|
||||
// TODO: Process specific escapes and validate them.
|
||||
advance()
|
||||
if (!isAtEnd) advance()
|
||||
} else if (c == Chars.percent) {
|
||||
// Consume the '('.
|
||||
if (!isAtEnd) advance()
|
||||
|
||||
@ -830,7 +830,7 @@ static const char* replModuleSource =
|
||||
"\n"
|
||||
" if (c == Chars.backslash) {\n"
|
||||
" // TODO: Process specific escapes and validate them.\n"
|
||||
" advance()\n"
|
||||
" if (!isAtEnd) advance()\n"
|
||||
" } else if (c == Chars.percent) {\n"
|
||||
" // Consume the '('.\n"
|
||||
" if (!isAtEnd) advance()\n"
|
||||
|
||||
Reference in New Issue
Block a user