mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
31850d3f29
commit
c2c1f7bf86
@ -318,7 +318,10 @@ static bool is_unicode_Lo_char(uint32_t c) {
|
||||
case '\\': {
|
||||
// line continuation character
|
||||
char c = eatchar_include_newline();
|
||||
if (c != '\n') SyntaxError("expected newline after line continuation character");
|
||||
if (c != '\n'){
|
||||
if(src->mode == REPL_MODE && c == '\0') throw NeedMoreLines(false);
|
||||
SyntaxError("expected newline after line continuation character");
|
||||
}
|
||||
eat_spaces();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user