jashkenas/coffee-script — Issue #2105: Continuation lines in REPL don't work as expected
Author: kengregson
Created: 2012-02-05 23:34:09+00:00
State: open

As a coffeescript newb, under both Mac OSX and Linux with CoffeeScript versions 1.1.1 and current branch master head,
attempt to continue line in the REPL results in a parse error:

>coffee
coffee> obj = \
Error: In repl, Parse error on line 1: Unexpected ')'
at Object.parseError (/Users/kludge/Downloads/github.com/jashkenas/coffee-script/lib/coffee-script/parser.js:473:11)
at Object.parse (/Users/kludge/Downloads/github.com/jashkenas/coffee-script/lib/coffee-script/parser.js:522:22)
at /Users/kludge/Downloads/github.com/jashkenas/coffee-script/lib/coffee-script/coffee-script.js:41:20
at Object.eval (/Users/kludge/Downloads/github.com/jashkenas/coffee-script/lib/coffee-script/coffee-script.js:128:10)
at Interface. (/Users/kludge/Downloads/github.com/jashkenas/coffee-script/lib/coffee-script/repl.js:116:40)
at Interface.emit (events.js:67:17)
at Interface._onLine (readline.js:162:10)
at Interface._normalWrite (readline.js:236:10)
at ReadStream. (readline.js:75:12)
at ReadStream.emit (events.js:88:20)
coffee>

Expected behavior is:
coffee> obj = \
......> "a"
'a'
coffee>