{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/sweet.js/issues/469","labels_url":"https://api.github.com/repos/mozilla/sweet.js/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/sweet.js/issues/469/comments","events_url":"https://api.github.com/repos/mozilla/sweet.js/issues/469/events","html_url":"https://github.com/mozilla/sweet.js/issues/469","id":69459110,"number":469,"title":"Matching block of code without semicolons separating statements not handled properly ","user":{"login":"dtarandek","id":8500329,"avatar_url":"https://avatars.githubusercontent.com/u/8500329?v=3","gravatar_id":"","url":"https://api.github.com/users/dtarandek","html_url":"https://github.com/dtarandek","followers_url":"https://api.github.com/users/dtarandek/followers","following_url":"https://api.github.com/users/dtarandek/following{/other_user}","gists_url":"https://api.github.com/users/dtarandek/gists{/gist_id}","starred_url":"https://api.github.com/users/dtarandek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtarandek/subscriptions","organizations_url":"https://api.github.com/users/dtarandek/orgs","repos_url":"https://api.github.com/users/dtarandek/repos","events_url":"https://api.github.com/users/dtarandek/events{/privacy}","received_events_url":"https://api.github.com/users/dtarandek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-19T20:06:38Z","updated_at":"2015-04-19T20:06:38Z","closed_at":null,"body":"The following macro wraps the code in a self invoking funciton as expected.\r\n\r\n```\r\nmacro wrap {\r\n    rule {\r\n        $params $body\r\n    } => {\r\n        (function $params $body)()\r\n    }\r\n}\r\n\r\nwrap (p1, p2) {\r\n    console.log('1');\r\n    console.log('2');\r\n}\r\n```\r\n\r\nThis example, without the semicolons separating the statements, throws an 'Unexpected identifier' error.\r\n\r\n```\r\nmacro wrap {\r\n    rule {\r\n        $params $body\r\n    } => {\r\n        (function $params $body)()\r\n    }\r\n}\r\n\r\nwrap (p1, p2) {\r\n    console.log('1')\r\n    console.log('2')\r\n}\r\n```"}}