jashkenas/coffee-script — pull request #3320 by xixixao (2014-01-22 18:37:11+00:00)
Title: Fix #1275

Fixes #1275 along with its duplicates, but to make sure I checked all these:

#1275
```

# These don't work
->
(
a
)
b
->
(
a
)
b

```
#1769
```

class Example

@STATIC_OBJECT = {
'a':1,
'b':2,
'c':3,
'd':4
}

constructor: () ->
alert('This is working!')

```
#1957
```

myObject =
foo:
bar:
baz: [
"hey"
] #indent me!
quux: "yo"

```
#2221
```

prop: ->
foo
.bar 'baz', ->
bliz
.blaz 'zing', ->
somethingHere()
.fooz()
someMoreStuffHere()

```
#2341
```

describe "test", () ->
x = [
1, 2
] # <-- A space at the beginning of this line
describe "innerTest", () ->
"Wrong indentation"

```
#2432
#2981
```
alert 'hello'
alert 'world'
# now throws an error even on command line
```

#2981
```
# alert 'hello'
# alert 'world'

# now throws an error

```
#2462
```

$(document)

.on "click", (event) ->

$(".xyz").click( ->
false
)

false

```
#2688
```

if true and true and
true and (
true or true
)
alert("")

```
#2734
```

test2 = ->
examples = if true
"yes"
else "no"
console.log(examples)

```
#3025
```

jQuery ->
$('body').each -> (
console.log("foo")
)
console.log('bar')

```
#3035
```

array = [
n: [
"a"
] # here the bracket is indented
c: "hello"
]

```
#3117
```

a = ->
foo = [
3
]
bar = baz