Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline support in the REPL #263

Merged
merged 3 commits into from
Jan 20, 2021
Merged

Multiline support in the REPL #263

merged 3 commits into from
Jan 20, 2021

Conversation

yannham
Copy link
Member

@yannham yannham commented Jan 18, 2021

Depend on #261. Partly address #257. Add multiline support, that is if the user hit ENTER on an incomplete input, the editor go to the next line and stays in input mode.

To determine if the line should end, the REPL tries to parse the input and don't end the input if parsing results in Unexpected end of file error.

Auto-indentation is not supported because it doesn't seem trivial to implement in rustyline (that is, without losing all the interesting features). Some related PRs have recent activity (kkawakam/rustyline#466), so let's wait and see on this side for now.

@yannham yannham mentioned this pull request Jan 19, 2021
Base automatically changed from feature/native-repl-frontend to master January 20, 2021 12:22
@edolstra edolstra merged commit ac0a3d1 into master Jan 20, 2021
@dpulls
Copy link

dpulls bot commented Jan 20, 2021

🎉 All dependencies have been resolved !

@edolstra edolstra deleted the feature/repl-multiline branch January 20, 2021 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants