michaelficarra/CoffeeScriptRedux — pull request #30 by jldailey (2012-08-15 20:43:34+00:00)
Title: unexpected indents in an indented expression

In the first-gen CS compiler, if an expression is not complete, and the following line increases the indent, it continues the expression:

a or
b or
c

The redux currently fails to parse this with "unexpected indent".

Also, a more common (and crucial) example is passing objects as arguments to function calls:

func({
a: 1
})

This fails similarly (removing the new lines allows it to parse correctly).

This pull request fixes nothing, but adds three tests that provide the smallest failing cases.

The test harness seems to give an misleading error when @shouldParse fails (all 3 say unexpected "%uEFEF" though that character is not in the data afaik), but attempting to parse a file with the test code fails "properly" (it identifies the line and whitespace-characters as errors, as expected given the current lack of the feature).