{"action":"created","issue":{"url":"https://api.github.com/repos/ziglang/zig/issues/2068","repository_url":"https://api.github.com/repos/ziglang/zig","labels_url":"https://api.github.com/repos/ziglang/zig/issues/2068/labels{/name}","comments_url":"https://api.github.com/repos/ziglang/zig/issues/2068/comments","events_url":"https://api.github.com/repos/ziglang/zig/issues/2068/events","html_url":"https://github.com/ziglang/zig/pull/2068","id":421449440,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYxNDk1OTk1","number":2068,"title":"workaround for #2043","user":{"login":"Hejsil","id":3759175,"node_id":"MDQ6VXNlcjM3NTkxNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3759175?v=4","gravatar_id":"","url":"https://api.github.com/users/Hejsil","html_url":"https://github.com/Hejsil","followers_url":"https://api.github.com/users/Hejsil/followers","following_url":"https://api.github.com/users/Hejsil/following{/other_user}","gists_url":"https://api.github.com/users/Hejsil/gists{/gist_id}","starred_url":"https://api.github.com/users/Hejsil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hejsil/subscriptions","organizations_url":"https://api.github.com/users/Hejsil/orgs","repos_url":"https://api.github.com/users/Hejsil/repos","events_url":"https://api.github.com/users/Hejsil/events{/privacy}","received_events_url":"https://api.github.com/users/Hejsil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-15T10:25:33Z","updated_at":"2019-03-16T20:34:46Z","closed_at":"2019-03-15T15:19:22Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ziglang/zig/pulls/2068","html_url":"https://github.com/ziglang/zig/pull/2068","diff_url":"https://github.com/ziglang/zig/pull/2068.diff","patch_url":"https://github.com/ziglang/zig/pull/2068.patch"},"body":"As mentioned [here](https://github.com/ziglang/zig/issues/2043#issuecomment-472900431) #1685 broke this code:\r\n```zig\r\ntest \"\" {\r\n    var a: usize = 0;\r\n    x: {\r\n        break :x &a;\r\n    }.* = 1;\r\n}\r\n```\r\n\r\nThis PR changes translate-c to output valid code again. The way this is done, is to trick the parser into parsing an expression at stmt level instead of a labeled block:\r\n```zig\r\ntest \"\" {\r\n    var a: usize = 0;\r\n    (x: {\r\n        break :x &a;\r\n    }).* = 1;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ziglang/zig/issues/comments/473590807","html_url":"https://github.com/ziglang/zig/pull/2068#issuecomment-473590807","issue_url":"https://api.github.com/repos/ziglang/zig/issues/2068","id":473590807,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MzU5MDgwNw==","user":{"login":"dbandstra","id":14319175,"node_id":"MDQ6VXNlcjE0MzE5MTc1","avatar_url":"https://avatars2.githubusercontent.com/u/14319175?v=4","gravatar_id":"","url":"https://api.github.com/users/dbandstra","html_url":"https://github.com/dbandstra","followers_url":"https://api.github.com/users/dbandstra/followers","following_url":"https://api.github.com/users/dbandstra/following{/other_user}","gists_url":"https://api.github.com/users/dbandstra/gists{/gist_id}","starred_url":"https://api.github.com/users/dbandstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbandstra/subscriptions","organizations_url":"https://api.github.com/users/dbandstra/orgs","repos_url":"https://api.github.com/users/dbandstra/repos","events_url":"https://api.github.com/users/dbandstra/events{/privacy}","received_events_url":"https://api.github.com/users/dbandstra/received_events","type":"User","site_admin":false},"created_at":"2019-03-16T20:34:46Z","updated_at":"2019-03-16T20:34:46Z","author_association":"CONTRIBUTOR","body":"Thanks Hejsil, that got my project oxid working again"}}
{"actor":{"display_login":"dbandstra"}}