mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Patch #802188: better parser error message for non-EOL following line cont.
This commit is contained in:
parent
a4dac4094a
commit
4bf108d74f
4 changed files with 8 additions and 1 deletions
|
@ -1413,7 +1413,7 @@ tok_get(register struct tok_state *tok, char **p_start, char **p_end)
|
|||
if (c == '\\') {
|
||||
c = tok_nextc(tok);
|
||||
if (c != '\n') {
|
||||
tok->done = E_TOKEN;
|
||||
tok->done = E_LINECONT;
|
||||
tok->cur = tok->inp;
|
||||
return ERRORTOKEN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue