{"action":"created","issue":{"url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/281","labels_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/281/comments","events_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/281/events","html_url":"https://github.com/TiVo/intellij-haxe/issues/281","id":82360621,"number":281,"title":"[Reformat File] Incorrect indentation brackets for switch-case blocks","user":{"login":"fzzr-","id":888526,"avatar_url":"https://avatars.githubusercontent.com/u/888526?v=3","gravatar_id":"","url":"https://api.github.com/users/fzzr-","html_url":"https://github.com/fzzr-","followers_url":"https://api.github.com/users/fzzr-/followers","following_url":"https://api.github.com/users/fzzr-/following{/other_user}","gists_url":"https://api.github.com/users/fzzr-/gists{/gist_id}","starred_url":"https://api.github.com/users/fzzr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzzr-/subscriptions","organizations_url":"https://api.github.com/users/fzzr-/orgs","repos_url":"https://api.github.com/users/fzzr-/repos","events_url":"https://api.github.com/users/fzzr-/events{/privacy}","received_events_url":"https://api.github.com/users/fzzr-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TiVo/intellij-haxe/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/TiVo/intellij-haxe/labels/Priority%202","name":"Priority 2","color":"ff5e00"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-29T09:58:02Z","updated_at":"2015-05-29T16:48:35Z","closed_at":null,"body":"Using «0.9.4 Community Release, Patch 1 for Idea 14.1» on Idea Community Edition 14.1.3 (JRE: 1.8.0_40)\r\n\r\nResult after calling \"Reformat File\":\r\n\r\n```haxe\r\npublic static function test(a:Dynamic, ?b:haxe.macro.Expr.ExprOf<EnumValue>)\r\n{\r\n\tvar value = true;\r\n\treturn switch(value)\r\n\t{\r\n\t\tcase false, true:\r\n\t\t\t{\r\n\t\t\t\tswitch(!!!!value)\r\n\t\t\t\t{\r\n\t\t\t\t\tcase true: null;\r\n\t\t\t\t\tcase false:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmacro switch($b)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tnull;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t};\r\n}\r\n```\r\n\r\nBut needed:\r\n\r\n```haxe\r\npublic static function test(a:Dynamic, ?b:haxe.macro.Expr.ExprOf<EnumValue>)\r\n{\r\n\tvar value = true;\r\n\treturn switch(value)\r\n\t{\r\n\t\tcase false, true:\r\n\t\t{\r\n\t\t\tswitch(!!!!value)\r\n\t\t\t{\r\n\t\t\t\tcase true: null;\r\n\t\t\t\tcase false:\r\n\t\t\t\t{\r\n\t\t\t\t\tmacro switch($b)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnull;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/comments/106868827","html_url":"https://github.com/TiVo/intellij-haxe/issues/281#issuecomment-106868827","issue_url":"https://api.github.com/repos/TiVo/intellij-haxe/issues/281","id":106868827,"user":{"login":"EBatTiVo","id":7231977,"avatar_url":"https://avatars.githubusercontent.com/u/7231977?v=3","gravatar_id":"","url":"https://api.github.com/users/EBatTiVo","html_url":"https://github.com/EBatTiVo","followers_url":"https://api.github.com/users/EBatTiVo/followers","following_url":"https://api.github.com/users/EBatTiVo/following{/other_user}","gists_url":"https://api.github.com/users/EBatTiVo/gists{/gist_id}","starred_url":"https://api.github.com/users/EBatTiVo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBatTiVo/subscriptions","organizations_url":"https://api.github.com/users/EBatTiVo/orgs","repos_url":"https://api.github.com/users/EBatTiVo/repos","events_url":"https://api.github.com/users/EBatTiVo/events{/privacy}","received_events_url":"https://api.github.com/users/EBatTiVo/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T16:48:35Z","updated_at":"2015-05-29T16:48:35Z","body":"Does the algorithm limit the number of nested code elements?"}}