{"action":"created","issue":{"url":"https://api.github.com/repos/PeyTy/LuaXe/issues/51","labels_url":"https://api.github.com/repos/PeyTy/LuaXe/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/PeyTy/LuaXe/issues/51/comments","events_url":"https://api.github.com/repos/PeyTy/LuaXe/issues/51/events","html_url":"https://github.com/PeyTy/LuaXe/issues/51","id":53859957,"number":51,"title":"Invalid lua generated when using multiple assignment operators on the same line","user":{"login":"andrewmunro","id":1107388,"avatar_url":"https://avatars.githubusercontent.com/u/1107388?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewmunro","html_url":"https://github.com/andrewmunro","followers_url":"https://api.github.com/users/andrewmunro/followers","following_url":"https://api.github.com/users/andrewmunro/following{/other_user}","gists_url":"https://api.github.com/users/andrewmunro/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmunro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmunro/subscriptions","organizations_url":"https://api.github.com/users/andrewmunro/orgs","repos_url":"https://api.github.com/users/andrewmunro/repos","events_url":"https://api.github.com/users/andrewmunro/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmunro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-09T11:46:14Z","updated_at":"2015-01-18T15:50:21Z","closed_at":null,"body":"Haxe code:\r\n```\r\nvar val = 5;\r\nvar val2 = val -= 2;\r\n```\r\n\r\nLua code:\r\n```\r\nlocal val = 5\r\nlocal val2 = val = val - 1\r\n```\r\n\r\nThis caused problems for me when using a tweening library:\r\n\r\n```\r\nstatic public function quadInOut(t:Float):Float {\r\n\treturn (t < 0.5) ? 2 * t * t : -2 * ((t -= 1) * t) + 1;\r\n}\r\n```\r\n\r\n```\r\nfunction tweenx909_EaseX_EaseX.quadInOut(t)\r\n\tif (t < 0.5) then\r\n\t\treturn 2 * t * t\r\n\telse\r\n\t\treturn -2 * ((t = t - 1) * t) + 1 // error here\r\n\tend\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/PeyTy/LuaXe/issues/comments/70413067","html_url":"https://github.com/PeyTy/LuaXe/issues/51#issuecomment-70413067","issue_url":"https://api.github.com/repos/PeyTy/LuaXe/issues/51","id":70413067,"user":{"login":"andrewmunro","id":1107388,"avatar_url":"https://avatars.githubusercontent.com/u/1107388?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewmunro","html_url":"https://github.com/andrewmunro","followers_url":"https://api.github.com/users/andrewmunro/followers","following_url":"https://api.github.com/users/andrewmunro/following{/other_user}","gists_url":"https://api.github.com/users/andrewmunro/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmunro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmunro/subscriptions","organizations_url":"https://api.github.com/users/andrewmunro/orgs","repos_url":"https://api.github.com/users/andrewmunro/repos","events_url":"https://api.github.com/users/andrewmunro/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmunro/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T15:50:21Z","updated_at":"2015-01-18T15:50:21Z","body":"Thanks :)"}}