{"action":"created","issue":{"url":"https://api.github.com/repos/enigma-dev/enigma-dev/issues/912","labels_url":"https://api.github.com/repos/enigma-dev/enigma-dev/issues/912/labels{/name}","comments_url":"https://api.github.com/repos/enigma-dev/enigma-dev/issues/912/comments","events_url":"https://api.github.com/repos/enigma-dev/enigma-dev/issues/912/events","html_url":"https://github.com/enigma-dev/enigma-dev/pull/912","id":53014590,"number":912,"title":"Fix for multi-code-block statements and exit.","user":{"login":"sorlok","id":513512,"avatar_url":"https://avatars.githubusercontent.com/u/513512?v=3","gravatar_id":"","url":"https://api.github.com/users/sorlok","html_url":"https://github.com/sorlok","followers_url":"https://api.github.com/users/sorlok/followers","following_url":"https://api.github.com/users/sorlok/following{/other_user}","gists_url":"https://api.github.com/users/sorlok/gists{/gist_id}","starred_url":"https://api.github.com/users/sorlok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorlok/subscriptions","organizations_url":"https://api.github.com/users/sorlok/orgs","repos_url":"https://api.github.com/users/sorlok/repos","events_url":"https://api.github.com/users/sorlok/events{/privacy}","received_events_url":"https://api.github.com/users/sorlok/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2014-12-29T01:16:12Z","updated_at":"2015-01-03T10:54:35Z","closed_at":"2015-01-03T03:36:31Z","pull_request":{"url":"https://api.github.com/repos/enigma-dev/enigma-dev/pulls/912","html_url":"https://github.com/enigma-dev/enigma-dev/pull/912","diff_url":"https://github.com/enigma-dev/enigma-dev/pull/912.diff","patch_url":"https://github.com/enigma-dev/enigma-dev/pull/912.patch"},"body":"Fixes https://github.com/enigma-dev/enigma-dev/issues/911\r\n\r\nTurns this:\r\n```\r\n//code block 1:\r\nexit;\r\n\r\n//Code block 2:\r\nshow_message(\"HI\");\r\n```\r\n\r\nInto this:\r\n```\r\n  {\r\n    goto block_end_0;;    \r\n  }\r\n  block_end_0:\r\n  {\r\n    show_message(\"HI\");\r\n  }\r\n```\r\n\r\nNote that these block labels are only created if \"exit\" is called at least once inside them. If the current block level couldn't be determined (which is common in scripts, timelines, etc.) then the previous behavior of \"return 0\" is used. This causes scripts, timelines, etc. to act at least as accurately as they used to."},"comment":{"url":"https://api.github.com/repos/enigma-dev/enigma-dev/issues/comments/68590864","html_url":"https://github.com/enigma-dev/enigma-dev/pull/912#issuecomment-68590864","issue_url":"https://api.github.com/repos/enigma-dev/enigma-dev/issues/912","id":68590864,"user":{"login":"RobertBColton","id":3212801,"avatar_url":"https://avatars.githubusercontent.com/u/3212801?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertBColton","html_url":"https://github.com/RobertBColton","followers_url":"https://api.github.com/users/RobertBColton/followers","following_url":"https://api.github.com/users/RobertBColton/following{/other_user}","gists_url":"https://api.github.com/users/RobertBColton/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertBColton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertBColton/subscriptions","organizations_url":"https://api.github.com/users/RobertBColton/orgs","repos_url":"https://api.github.com/users/RobertBColton/repos","events_url":"https://api.github.com/users/RobertBColton/events{/privacy}","received_events_url":"https://api.github.com/users/RobertBColton/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T10:54:35Z","updated_at":"2015-01-03T10:54:35Z","body":"@BPzeBanshee Oh boy, there's not really much that can be done about that, but please file a separate ticket for the issue since this has been closed."}}