atom/language-javascript — pull request #72 by malexandre (2014-12-11 21:02:11+00:00)
Title: Workaround for Allman-style indentation

Hello!

I'm using Allman style for my javascript. For a short reminder, this is what the Allman style looks like:
```javascript
function allman()
{
if (true)
{
console.log('True!');
}
else
{
console.log('False :(');
}
}
```

When typing, and even more when pasting, there is a bug in Atom with the statements:
- Typing ![Allman typing on Atom](https://cloud.githubusercontent.com/assets/1535967/5394008/2d5f7054-8138-11e4-9ec0-b168c00480f4.gif)
- Pasting ![Allman pasting on Atom](https://cloud.githubusercontent.com/assets/1535967/5394014/40030644-8138-11e4-86c2-0b3eaef7f3c1.gif)

The expecting behaviour works on Brackets:
- Typing ![Allman typing on Brackets](https://cloud.githubusercontent.com/assets/1535967/5394022/4d38f116-8138-11e4-82fb-72c7c5f876e5.gif)
- Pasting ![Allman pasting on Brackets](https://cloud.githubusercontent.com/assets/1535967/5394023/5487db76-8138-11e4-88fc-514dda983414.gif)

I saw that the language-c repo had already fix that. So I just took [their solution](https://github.com/atom/language-c/commit/92c43f8b7042b7d847b2bb663fd342fe0444bfd0#diff-6f7ea2e48c01517ecd5b35c7df4e22aaR13) to create this PR.

Bug tested in Atom 0.156.0. Fix on C language tested on the same version.