{"action":"created","issue":{"url":"https://api.github.com/repos/chrisbarrett/swift-mode/issues/59","labels_url":"https://api.github.com/repos/chrisbarrett/swift-mode/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/chrisbarrett/swift-mode/issues/59/comments","events_url":"https://api.github.com/repos/chrisbarrett/swift-mode/issues/59/events","html_url":"https://github.com/chrisbarrett/swift-mode/issues/59","id":47596972,"number":59,"title":"Indention bug: enums","user":{"login":"ckruse","id":175095,"avatar_url":"https://avatars.githubusercontent.com/u/175095?v=3","gravatar_id":"","url":"https://api.github.com/users/ckruse","html_url":"https://github.com/ckruse","followers_url":"https://api.github.com/users/ckruse/followers","following_url":"https://api.github.com/users/ckruse/following{/other_user}","gists_url":"https://api.github.com/users/ckruse/gists{/gist_id}","starred_url":"https://api.github.com/users/ckruse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckruse/subscriptions","organizations_url":"https://api.github.com/users/ckruse/orgs","repos_url":"https://api.github.com/users/ckruse/repos","events_url":"https://api.github.com/users/ckruse/events{/privacy}","received_events_url":"https://api.github.com/users/ckruse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrisbarrett/swift-mode/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-03T14:11:03Z","updated_at":"2015-02-23T20:28:04Z","closed_at":null,"body":"Hi,\r\n\r\nindention for enums is totally bugged:\r\n\r\n``` swift\r\nenum OrderViewTableTakeAwayCells: Int {\r\n  case DeliveryCell = 0,\r\n                      nameCell = 1,\r\n                                 emailCell = 2,\r\n                                             phoneCell = 3,\r\n                                                         couponCodeCell = 4,\r\n                                                                          lastCellIndex\r\n}\r\n```\r\n\r\n``` swift\r\nenum OrderViewTableDeliveryCells: Int {\r\n  case DeliveryCell = 0,\r\n                      nameCell,\r\n                      emailCell,\r\n                      phoneCell,\r\n                      couponCodeCell,\r\n                      addressCell,\r\n                      address1Cell,\r\n                      zipCell,\r\n                      cityCell,\r\n                      lastCellIndex\r\n}\r\n```\r\n\r\n``` swift\r\nenum OtherEnum {\r\n  case Val1\r\n  case Val2\r\n  case Val3\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/chrisbarrett/swift-mode/issues/comments/75624853","html_url":"https://github.com/chrisbarrett/swift-mode/issues/59#issuecomment-75624853","issue_url":"https://api.github.com/repos/chrisbarrett/swift-mode/issues/59","id":75624853,"user":{"login":"ap4y","id":673861,"avatar_url":"https://avatars.githubusercontent.com/u/673861?v=3","gravatar_id":"","url":"https://api.github.com/users/ap4y","html_url":"https://github.com/ap4y","followers_url":"https://api.github.com/users/ap4y/followers","following_url":"https://api.github.com/users/ap4y/following{/other_user}","gists_url":"https://api.github.com/users/ap4y/gists{/gist_id}","starred_url":"https://api.github.com/users/ap4y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ap4y/subscriptions","organizations_url":"https://api.github.com/users/ap4y/orgs","repos_url":"https://api.github.com/users/ap4y/repos","events_url":"https://api.github.com/users/ap4y/events{/privacy}","received_events_url":"https://api.github.com/users/ap4y/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T20:28:04Z","updated_at":"2015-02-23T20:28:04Z","body":"Several related cases reported by @taku0 in #75:\r\n\r\n```swift\r\nenum Foo: Bar {\r\n    case foo\r\n    case bar\r\n        var foo\r\n}\r\n\r\nenum Foo {\r\n    case A(Int, [Int : String]), B, C\r\n                                    func foo() {\r\n    }\r\n}\r\n```\r\n"}}