{"action":"created","issue":{"url":"https://api.github.com/repos/vim-erlang/vim-erlang-runtime/issues/28","labels_url":"https://api.github.com/repos/vim-erlang/vim-erlang-runtime/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/vim-erlang/vim-erlang-runtime/issues/28/comments","events_url":"https://api.github.com/repos/vim-erlang/vim-erlang-runtime/issues/28/events","html_url":"https://github.com/vim-erlang/vim-erlang-runtime/pull/28","id":62503759,"number":28,"title":"Indent after a line with trailing =","user":{"login":"evnu","id":224554,"avatar_url":"https://avatars.githubusercontent.com/u/224554?v=3","gravatar_id":"","url":"https://api.github.com/users/evnu","html_url":"https://github.com/evnu","followers_url":"https://api.github.com/users/evnu/followers","following_url":"https://api.github.com/users/evnu/following{/other_user}","gists_url":"https://api.github.com/users/evnu/gists{/gist_id}","starred_url":"https://api.github.com/users/evnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evnu/subscriptions","organizations_url":"https://api.github.com/users/evnu/orgs","repos_url":"https://api.github.com/users/evnu/repos","events_url":"https://api.github.com/users/evnu/events{/privacy}","received_events_url":"https://api.github.com/users/evnu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-17T19:59:55Z","updated_at":"2015-03-18T22:51:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vim-erlang/vim-erlang-runtime/pulls/28","html_url":"https://github.com/vim-erlang/vim-erlang-runtime/pull/28","diff_url":"https://github.com/vim-erlang/vim-erlang-runtime/pull/28.diff","patch_url":"https://github.com/vim-erlang/vim-erlang-runtime/pull/28.patch"},"body":"In OTP, indentation after `=` is handled similar to this example:\r\n\r\n    f(X) ->\r\n        MyVariable =\r\n            case X of\r\n                true -> ok;\r\n                false -> still_ok\r\n            end,\r\n        MyVariable.\r\n\r\nThis PR implements indentation after a trailing `=` (with possible whitespace). When a trailing `=` is encountered, the following line is indented by one shiftwidth of the previous line.\r\n\r\nI chose to implement this nearby the implementation of handling comments, as I guessed that this would be the proper way to do this. If the logic should be placed somewhere else instead, please let me know.\r\n"},"comment":{"url":"https://api.github.com/repos/vim-erlang/vim-erlang-runtime/issues/comments/83217085","html_url":"https://github.com/vim-erlang/vim-erlang-runtime/pull/28#issuecomment-83217085","issue_url":"https://api.github.com/repos/vim-erlang/vim-erlang-runtime/issues/28","id":83217085,"user":{"login":"evnu","id":224554,"avatar_url":"https://avatars.githubusercontent.com/u/224554?v=3","gravatar_id":"","url":"https://api.github.com/users/evnu","html_url":"https://github.com/evnu","followers_url":"https://api.github.com/users/evnu/followers","following_url":"https://api.github.com/users/evnu/following{/other_user}","gists_url":"https://api.github.com/users/evnu/gists{/gist_id}","starred_url":"https://api.github.com/users/evnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evnu/subscriptions","organizations_url":"https://api.github.com/users/evnu/orgs","repos_url":"https://api.github.com/users/evnu/repos","events_url":"https://api.github.com/users/evnu/events{/privacy}","received_events_url":"https://api.github.com/users/evnu/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T22:51:35Z","updated_at":"2015-03-18T22:51:35Z","body":"Thanks for your reply and your suggestions. I appreciate that you took the time to write that down here. Sorry that I missed to check the commit properly.\r\n\r\nI fixed the two errors with an extra commit each. If you'd prefer it, I could also squash them and forcefully push it.\r\n\r\nRegarding your more general objections, yes, this is much harder than I thought. I will give this some more thought, but probably your choice of indentation is the reasonable thing to do, considering that indenting has to be fast as well."}}