Coffeescript + Reformat code

Hi.

Intellij (12.1.3)

Coffescript code:

test = (x)->
  x += 10
  x *= 10
  return
  
myFunc = ->
  test(10)


After code reformating look like

test = (x)->
  x += 10
  x *= 10
return

myFunc = ->
  test(10)


Pay attention to position of word "return"

It is bug?

Before:
before-code-reformating.png
After:
after-code-reformating.png
My code style settings for coffeescript:
coffee-code-style-01.png
coffee-code-style-02.png
coffee-code-style-03.png
coffee-code-style-04.png

Thanks in advance

2 comments

Konstantin, it's a bug. I've created issue http://youtrack.jetbrains.com/issue/WEB-7819. Please vote for it so that receive notification

0

Please sign in to leave a comment.