{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/6808","labels_url":"https://api.github.com/repos/atom/atom/issues/6808/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/6808/comments","events_url":"https://api.github.com/repos/atom/atom/issues/6808/events","html_url":"https://github.com/atom/atom/pull/6808","id":76782576,"number":6808,"title":"Change hard coded restrictions to enable more correct indentions","user":{"login":"svanharmelen","id":4171547,"avatar_url":"https://avatars.githubusercontent.com/u/4171547?v=3","gravatar_id":"","url":"https://api.github.com/users/svanharmelen","html_url":"https://github.com/svanharmelen","followers_url":"https://api.github.com/users/svanharmelen/followers","following_url":"https://api.github.com/users/svanharmelen/following{/other_user}","gists_url":"https://api.github.com/users/svanharmelen/gists{/gist_id}","starred_url":"https://api.github.com/users/svanharmelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svanharmelen/subscriptions","organizations_url":"https://api.github.com/users/svanharmelen/orgs","repos_url":"https://api.github.com/users/svanharmelen/repos","events_url":"https://api.github.com/users/svanharmelen/events{/privacy}","received_events_url":"https://api.github.com/users/svanharmelen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/atom","name":"atom","color":"f7c6c7"},{"url":"https://api.github.com/repos/atom/atom/labels/needs-review","name":"needs-review","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"maxbrunsfeld","id":326587,"avatar_url":"https://avatars.githubusercontent.com/u/326587?v=3","gravatar_id":"","url":"https://api.github.com/users/maxbrunsfeld","html_url":"https://github.com/maxbrunsfeld","followers_url":"https://api.github.com/users/maxbrunsfeld/followers","following_url":"https://api.github.com/users/maxbrunsfeld/following{/other_user}","gists_url":"https://api.github.com/users/maxbrunsfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/maxbrunsfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxbrunsfeld/subscriptions","organizations_url":"https://api.github.com/users/maxbrunsfeld/orgs","repos_url":"https://api.github.com/users/maxbrunsfeld/repos","events_url":"https://api.github.com/users/maxbrunsfeld/events{/privacy}","received_events_url":"https://api.github.com/users/maxbrunsfeld/received_events","type":"User","site_admin":true},"milestone":null,"comments":28,"created_at":"2015-05-15T16:38:27Z","updated_at":"2015-06-23T17:54:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/atom/atom/pulls/6808","html_url":"https://github.com/atom/atom/pull/6808","diff_url":"https://github.com/atom/atom/pull/6808.diff","patch_url":"https://github.com/atom/atom/pull/6808.patch"},"body":"Currently the hard coded restrictions prevent some very valid use cases (will add a before and after screencasts at the bottom) and limit the possibilities to implement correct indentation.\r\n\r\nBefore:\r\n![before](https://cloud.githubusercontent.com/assets/4171547/7628544/db28e958-fa24-11e4-9599-126bd61ef749.gif)\r\nAs you can see here the bracket isn't indented correctly when moving it to the next line. The decreaseIndentPattern is correct as it does increase when removing and typing in the bracket again on the same line.\r\n\r\nAfter:\r\n![after](https://cloud.githubusercontent.com/assets/4171547/7628620/df8dfb5e-fa25-11e4-9056-b58b4aee31fa.gif)\r\nAfter removing the hard coded restrictions, the bracket is indented as expected."},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/114590044","html_url":"https://github.com/atom/atom/pull/6808#issuecomment-114590044","issue_url":"https://api.github.com/repos/atom/atom/issues/6808","id":114590044,"user":{"login":"svanharmelen","id":4171547,"avatar_url":"https://avatars.githubusercontent.com/u/4171547?v=3","gravatar_id":"","url":"https://api.github.com/users/svanharmelen","html_url":"https://github.com/svanharmelen","followers_url":"https://api.github.com/users/svanharmelen/followers","following_url":"https://api.github.com/users/svanharmelen/following{/other_user}","gists_url":"https://api.github.com/users/svanharmelen/gists{/gist_id}","starred_url":"https://api.github.com/users/svanharmelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svanharmelen/subscriptions","organizations_url":"https://api.github.com/users/svanharmelen/orgs","repos_url":"https://api.github.com/users/svanharmelen/repos","events_url":"https://api.github.com/users/svanharmelen/events{/privacy}","received_events_url":"https://api.github.com/users/svanharmelen/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T17:54:14Z","updated_at":"2015-06-23T17:54:14Z","body":"@maxbrunsfeld I worked (quite intensively) with the updated code today, and it seems to work perfectly. So if you could have another look that would be great :smiley:\r\n\r\nThx!"}}