sterpe / coffee-fmt

gofmt for coffee
MIT License
9 stars 4 forks source link

[Bug] "array.push something" becomes "array.pushsomething" #14

Closed Glavin001 closed 9 years ago

Glavin001 commented 9 years ago

I was formatting https://github.com/Glavin001/atom-beautify/blob/master/src/beautify.coffee#L31-L34 and it broke the code.

Before:

 posArray.push [
      bufferPosition.row
      bufferPosition.column
    ]

After:

 posArray.push[
      bufferPosition.row
      bufferPosition.column
    ]
sterpe commented 9 years ago

ah okay. Let me see how I need to approach this.

sterpe commented 9 years ago

I was always hoping to get away without writing my own parser for coffeescriptvbut I think it's the only way to handle this and #9

sterpe commented 9 years ago

Fixed 3f8e5504b4eef76e5288d1addf9bb032f7afa38d