title: How to pass function as parameter with multiline array in IDEA?
body: <p>Suppose I have this function in coffeescript file</p>
  
  <pre><code>test = (arr, fn) -&gt;
      console.log item for item in arr
      fn()
  </code></pre>
  
  <p>Here is how I call it</p>
  
  <pre><code>test [1, 2, 3, 4, 5], -&gt;
      console.log "start"
      # function body
      console.log "finish" 
  </code></pre>
  
  <p>Everything OK until array become too long and I want split it on several lines. Like this</p>
  
  <pre><code>test ["first element here",
        "second element here",
        "third element here",
        "fourth element here",
        "fifth element here"], -&gt;
      console.log "start"
      # function body
      console.log "finish"
  </code></pre>
  
  <p>This is valid since coffeescript compiler compiles it exactly how I expect, but IDEA says that there is <strong>Unexpected indent</strong> at <code>console.log "start"</code> line. I press <em>Ctrl+Alt+L</em> and IDEA gives me this </p>
  
  <pre><code>test ["first element here",
        "second element here",
        "third element here",
        "fourth element here",
        "fifth element here"], -&gt;
  console.log "start"
  # function body
  console.log "finish"
  </code></pre>
  
  <p>which is wrong, since in that case empty function is passed as parameter. Is this a bug or I can fix it by myself?</p>