REPL: fix open parenthesis not triggering "incomplete"

Check if all of the syntax errors are at EOF, not that there's a single one.
In case of open parenthesis two syntax errors are reported for some reason
This commit is contained in:
Alexander Udalov
2014-07-27 17:34:41 -07:00
parent 4213ce318e
commit 6eb5567895
7 changed files with 54 additions and 21 deletions
@@ -0,0 +1,10 @@
>>> fun concat(a: String, b: String, c: String, d: String) = "$a$b$c$d"
>>> concat(
... "hel",
... "lo"
... ,
... "wo" +
... "r", "l" +
... "d"
... )
helloworld