Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
73c79b99
Commit
73c79b99
authored
Apr 08, 2014
by
Damien George
Browse files
py: Continue line if last character is backslash.
parent
443e018a
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/repl.c
View file @
73c79b99
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment