{"action":"created","issue":{"url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/78","labels_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/78/comments","events_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/78/events","html_url":"https://github.com/zenspider/enhanced-ruby-mode/issues/78","id":73947896,"number":78,"title":"A \"stand-alone\" hash not being indented correctly","user":{"login":"art-solopov","id":5079987,"avatar_url":"https://avatars.githubusercontent.com/u/5079987?v=3","gravatar_id":"","url":"https://api.github.com/users/art-solopov","html_url":"https://github.com/art-solopov","followers_url":"https://api.github.com/users/art-solopov/followers","following_url":"https://api.github.com/users/art-solopov/following{/other_user}","gists_url":"https://api.github.com/users/art-solopov/gists{/gist_id}","starred_url":"https://api.github.com/users/art-solopov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/art-solopov/subscriptions","organizations_url":"https://api.github.com/users/art-solopov/orgs","repos_url":"https://api.github.com/users/art-solopov/repos","events_url":"https://api.github.com/users/art-solopov/events{/privacy}","received_events_url":"https://api.github.com/users/art-solopov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"zenspider","id":9832,"avatar_url":"https://avatars.githubusercontent.com/u/9832?v=3","gravatar_id":"","url":"https://api.github.com/users/zenspider","html_url":"https://github.com/zenspider","followers_url":"https://api.github.com/users/zenspider/followers","following_url":"https://api.github.com/users/zenspider/following{/other_user}","gists_url":"https://api.github.com/users/zenspider/gists{/gist_id}","starred_url":"https://api.github.com/users/zenspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenspider/subscriptions","organizations_url":"https://api.github.com/users/zenspider/orgs","repos_url":"https://api.github.com/users/zenspider/repos","events_url":"https://api.github.com/users/zenspider/events{/privacy}","received_events_url":"https://api.github.com/users/zenspider/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-07T11:22:48Z","updated_at":"2015-06-05T01:27:25Z","closed_at":null,"body":"![enh-ruby-indent-error](https://cloud.githubusercontent.com/assets/5079987/7514203/177d111a-f4c4-11e4-9503-29a4448b3e28.png)\r\nPlease note that if I:\r\n* Remove the `a, b = do_something` line\r\n* Write an assignment statement (i.e., `h = {...}`)\r\nThe issue disappears, the indentation applied correctly.\r\nI've encountered this error first in my Rspec `let` statement, if anyone wonders how realistic my example is.\r\n\r\n*P. S.* If I just leave the hash stand-alone, the error persists.\r\n![enh-ruby-indent-error-2](https://cloud.githubusercontent.com/assets/5079987/7514286/c44b78d2-f4c4-11e4-9646-f8dc5e614864.png)"},"comment":{"url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/comments/109116412","html_url":"https://github.com/zenspider/enhanced-ruby-mode/issues/78#issuecomment-109116412","issue_url":"https://api.github.com/repos/zenspider/enhanced-ruby-mode/issues/78","id":109116412,"user":{"login":"zenspider","id":9832,"avatar_url":"https://avatars.githubusercontent.com/u/9832?v=3","gravatar_id":"","url":"https://api.github.com/users/zenspider","html_url":"https://github.com/zenspider","followers_url":"https://api.github.com/users/zenspider/followers","following_url":"https://api.github.com/users/zenspider/following{/other_user}","gists_url":"https://api.github.com/users/zenspider/gists{/gist_id}","starred_url":"https://api.github.com/users/zenspider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenspider/subscriptions","organizations_url":"https://api.github.com/users/zenspider/orgs","repos_url":"https://api.github.com/users/zenspider/repos","events_url":"https://api.github.com/users/zenspider/events{/privacy}","received_events_url":"https://api.github.com/users/zenspider/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T01:27:25Z","updated_at":"2015-06-05T01:27:25Z","body":"The hash, standalone, works fine:\r\n\r\n```ruby\r\n{\r\n a: a,\r\n b: b\r\n}\r\n```\r\n\r\nIf you make it look like a block, it seems to misindent:\r\n\r\n```ruby\r\nx {\r\n  a: a,\r\n    b: b\r\n}\r\n```\r\n\r\nbut since that isn't valid ruby, I'm not sure I care about that scenario.\r\n\r\nOddly, the original scenario has the same problem (and I suspect they're related):\r\n\r\n```ruby\r\na, b = do_something\r\n{\r\n  a: a,\r\n    b: b\r\n}\r\n```"}}