mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Handle syntax errors in repl
This commit is contained in:
parent
6227e37559
commit
e6bd2a5f30
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ pub fn is_incomplete(input: &str) -> bool {
|
|||
let arena = Bump::new();
|
||||
|
||||
match parse_src(&arena, input) {
|
||||
ParseOutcome::Incomplete => true,
|
||||
ParseOutcome::Incomplete => !input.ends_with('\n'),
|
||||
// Standalone annotations are default incomplete, because we can't know
|
||||
// whether they're about to annotate a body on the next line
|
||||
// (or if not, meaning they stay standalone) until you press Enter again!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue