I am trying to use CoffeeScript in a Rails 3.1 application. However, I cannot figure out how to break long lines in CoffeeScript without getting the above error
For example, how / where do you break the following line of code
alert x for x in [1,2,3,4,5] when x > 2
if you want something like
alert x for
x in [1,2,3,4,5]
when x > 2
In my vimrc I installed
ts=2, sw=2 and I expand tabs.
And yet, I cannot get something as simple as the line above to work correctly.
My Gemfile.lock shows coffee script -2.2.0 with coffee - script - source 1.1.3
source
share