{"action":"created","issue":{"url":"https://api.github.com/repos/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/41","labels_url":"https://api.github.com/repos/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/41/comments","events_url":"https://api.github.com/repos/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/41/events","html_url":"https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/pull/41","id":67233347,"number":41,"title":"This improves the indentation of else version and else debug statements, issue #39","user":{"login":"dmakarov","id":103494,"avatar_url":"https://avatars.githubusercontent.com/u/103494?v=3","gravatar_id":"","url":"https://api.github.com/users/dmakarov","html_url":"https://github.com/dmakarov","followers_url":"https://api.github.com/users/dmakarov/followers","following_url":"https://api.github.com/users/dmakarov/following{/other_user}","gists_url":"https://api.github.com/users/dmakarov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmakarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmakarov/subscriptions","organizations_url":"https://api.github.com/users/dmakarov/orgs","repos_url":"https://api.github.com/users/dmakarov/repos","events_url":"https://api.github.com/users/dmakarov/events{/privacy}","received_events_url":"https://api.github.com/users/dmakarov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-08T22:24:52Z","updated_at":"2015-04-09T08:45:00Z","closed_at":"2015-04-09T05:05:04Z","pull_request":{"url":"https://api.github.com/repos/Emacs-D-Mode-Maintainers/Emacs-D-Mode/pulls/41","html_url":"https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/pull/41","diff_url":"https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/pull/41.diff","patch_url":"https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/pull/41.patch"},"body":"With this change multiple choice version statements like the following are indented correctly\r\n\r\n```d\r\nversion (A)\r\n{\r\n}\r\nelse version (B)\r\n{\r\n}\r\nelse\r\n{\r\n}\r\n```\r\n\r\nThe same works for `debug` statements.\r\nHowever, if `version` is not on the same line with `else`, the indentation of the trailing `else` is not correct\r\n```d\r\nversion (A)\r\n{\r\n}\r\nelse\r\n  version (B)\r\n  {\r\n  }\r\nelse\r\n{\r\n}\r\n```\r\nYet, I believe it's still an improvement. Please, review the PR when you have time.\r\n"},"comment":{"url":"https://api.github.com/repos/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/comments/91153359","html_url":"https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/pull/41#issuecomment-91153359","issue_url":"https://api.github.com/repos/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/41","id":91153359,"user":{"login":"mathias-lang-sociomantic","id":11289420,"avatar_url":"https://avatars.githubusercontent.com/u/11289420?v=3","gravatar_id":"","url":"https://api.github.com/users/mathias-lang-sociomantic","html_url":"https://github.com/mathias-lang-sociomantic","followers_url":"https://api.github.com/users/mathias-lang-sociomantic/followers","following_url":"https://api.github.com/users/mathias-lang-sociomantic/following{/other_user}","gists_url":"https://api.github.com/users/mathias-lang-sociomantic/gists{/gist_id}","starred_url":"https://api.github.com/users/mathias-lang-sociomantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathias-lang-sociomantic/subscriptions","organizations_url":"https://api.github.com/users/mathias-lang-sociomantic/orgs","repos_url":"https://api.github.com/users/mathias-lang-sociomantic/repos","events_url":"https://api.github.com/users/mathias-lang-sociomantic/events{/privacy}","received_events_url":"https://api.github.com/users/mathias-lang-sociomantic/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T08:45:00Z","updated_at":"2015-04-09T08:45:00Z","body":"Nice, thanks !\r\nHowever, small nitpick: this works for Allman, but not for OTBS:\r\n\r\n````\r\nversion(Foo) {\r\n    // Foo\r\n} else version (Bar) {\r\n    // Bar\r\n  } else {\r\n    // Unsupported                                                                                                     \r\n}\r\n````"}}