Repository navigation
repl: backslashes confuse the multiline parser #2749
Description
Activity
- addedreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
on Sep 9, 2015 Mmmm, this is because the readline module parsing
\ns as separate lines while parsing the pasted content. I'll look into it today. Glad you spotted it :-)parsing \ns as separate lines
It's not just
\ns, I actually encountered it with a\(first.Looks to be a pretty recent regression, 0.12 works.
- addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Sep 9, 2015 @silverwind It's after this 81ea52a. Before that the string was accumulated no matter what, till the evaluation of accumulated string is successful. But that commit keeps track of the quotes to detect the string literals.
Can confirm I got this problem too when trying the hello world server from the website about page in the REPL.
@silverwind I think we'll have to revert 81ea52a to fix this problem. cc @Fishrock123
👍 for the revert. Being unable to paste any multi-line code containing backslashes warrents it imho.
@thefourtheye want to attempt the revert yourself? (We could probably use some documentation for reverting)
- added a commit that references this issue
on Sep 18, 2015 @silverwind Sorry, I was out playing badminton :D Please take a look at the commit log of the bug fix and let me know if that has to be improved.
- added 2 commits that reference this issue
on Sep 20, 2015 Fixed by fcfd87d
Pasting this into the REPL:
results in
cc: @thefourtheye