repl: fix multi-line input
authorFedor Indutny <fedor@indutny.com>
Sat, 7 Jun 2014 06:00:55 +0000 (23:00 -0700)
committerFedor Indutny <fedor@indutny.com>
Mon, 30 Jun 2014 09:04:36 +0000 (13:04 +0400)
commitb5175003bca45e23bd20d9559096dafda3e0ad7c
tree1c350a7234e8950befc31d0835633f4c5e364ea7
parent7fa4a9697d82fe811b73aea92492b66798420609
repl: fix multi-line input

The refactor in 3ae0b17c broke the multiline input's visual appearence.
While actually switching to this mode, the `...` prefix is not
displayed.

Additionally, account only SyntaxErrors that are happening at the parse
time, everything else should not be switching repl to the multiline
mode.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
lib/repl.js