You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
py: Continue line if last character is backslash.
This commit is contained in:
@@ -67,6 +67,11 @@ bool mp_repl_continue_with_input(const char *input) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// continue if last character was backslash (for line continuation)
|
||||
if (i[-1] == '\\') {
|
||||
return true;
|
||||
}
|
||||
|
||||
// continue if compound keyword and last line was not empty
|
||||
if (starts_with_compound_keyword && i[-1] != '\n') {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user