{"action":"created","issue":{"url":"https://api.github.com/repos/luna/luna/issues/242","repository_url":"https://api.github.com/repos/luna/luna","labels_url":"https://api.github.com/repos/luna/luna/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/luna/luna/issues/242/comments","events_url":"https://api.github.com/repos/luna/luna/issues/242/events","html_url":"https://github.com/luna/luna/issues/242","id":349566935,"node_id":"MDU6SXNzdWUzNDk1NjY5MzU=","number":242,"title":"Parser incorrectly parses two functions when one of them is invalid","user":{"login":"iamrecursion","id":5780639,"node_id":"MDQ6VXNlcjU3ODA2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5780639?v=4","gravatar_id":"","url":"https://api.github.com/users/iamrecursion","html_url":"https://github.com/iamrecursion","followers_url":"https://api.github.com/users/iamrecursion/followers","following_url":"https://api.github.com/users/iamrecursion/following{/other_user}","gists_url":"https://api.github.com/users/iamrecursion/gists{/gist_id}","starred_url":"https://api.github.com/users/iamrecursion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamrecursion/subscriptions","organizations_url":"https://api.github.com/users/iamrecursion/orgs","repos_url":"https://api.github.com/users/iamrecursion/repos","events_url":"https://api.github.com/users/iamrecursion/events{/privacy}","received_events_url":"https://api.github.com/users/iamrecursion/received_events","type":"User","site_admin":false},"labels":[{"id":827507588,"node_id":"MDU6TGFiZWw4Mjc1MDc1ODg=","url":"https://api.github.com/repos/luna/luna/labels/C%20-%20Compiler","name":"C - Compiler","color":"E29B47","default":false},{"id":827507115,"node_id":"MDU6TGFiZWw4Mjc1MDcxMTU=","url":"https://api.github.com/repos/luna/luna/labels/D%20-%20Core%20Contributor","name":"D - Core Contributor","color":"b4fca6","default":false},{"id":827513596,"node_id":"MDU6TGFiZWw4Mjc1MTM1OTY=","url":"https://api.github.com/repos/luna/luna/labels/P%20-%20Critical","name":"P - Critical","color":"c70000","default":false},{"id":502164154,"node_id":"MDU6TGFiZWw1MDIxNjQxNTQ=","url":"https://api.github.com/repos/luna/luna/labels/T%20-%20Bug","name":"T - Bug","color":"ee0701","default":false},{"id":827510558,"node_id":"MDU6TGFiZWw4Mjc1MTA1NTg=","url":"https://api.github.com/repos/luna/luna/labels/T%20-%20Non-Breaking%20Change","name":"T - Non-Breaking Change","color":"82d63e","default":false}],"state":"open","locked":false,"assignee":{"login":"wdanilo","id":1623053,"node_id":"MDQ6VXNlcjE2MjMwNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1623053?v=4","gravatar_id":"","url":"https://api.github.com/users/wdanilo","html_url":"https://github.com/wdanilo","followers_url":"https://api.github.com/users/wdanilo/followers","following_url":"https://api.github.com/users/wdanilo/following{/other_user}","gists_url":"https://api.github.com/users/wdanilo/gists{/gist_id}","starred_url":"https://api.github.com/users/wdanilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdanilo/subscriptions","organizations_url":"https://api.github.com/users/wdanilo/orgs","repos_url":"https://api.github.com/users/wdanilo/repos","events_url":"https://api.github.com/users/wdanilo/events{/privacy}","received_events_url":"https://api.github.com/users/wdanilo/received_events","type":"User","site_admin":false},"assignees":[{"login":"wdanilo","id":1623053,"node_id":"MDQ6VXNlcjE2MjMwNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1623053?v=4","gravatar_id":"","url":"https://api.github.com/users/wdanilo","html_url":"https://github.com/wdanilo","followers_url":"https://api.github.com/users/wdanilo/followers","following_url":"https://api.github.com/users/wdanilo/following{/other_user}","gists_url":"https://api.github.com/users/wdanilo/gists{/gist_id}","starred_url":"https://api.github.com/users/wdanilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdanilo/subscriptions","organizations_url":"https://api.github.com/users/wdanilo/orgs","repos_url":"https://api.github.com/users/wdanilo/repos","events_url":"https://api.github.com/users/wdanilo/events{/privacy}","received_events_url":"https://api.github.com/users/wdanilo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-10T15:48:25Z","updated_at":"2018-09-04T07:11:37Z","closed_at":null,"author_association":"COLLABORATOR","body":"@mikusp commented on [Fri Jul 27 2018](https://github.com/luna/luna-core/issues/128)\n\nConsider code:\r\n```\r\nimport Std.Base\r\ndef foof:\r\n«0»def main:\r\n    «1»4\r\n```\r\n\r\nWhen parsed, I would expect to see a Record with two elements, one Marked, containing `main` function and one Function containing invalid `foof` function. However, what is returned, looks like this:\r\n![zrzut ekranu z 2018-07-27 12-03-45](https://user-images.githubusercontent.com/2052578/43315204-8b544d4e-9195-11e8-82e1-14ddbc641f16.png)\r\nBoth functions are considered to be without markers. Furthermore, when our marking code runs, it will put a marker for foof, right before def (as expected) AND for main, but right after `foof`! Resulting code looks like this:\r\n```\r\nimport Std.Base\r\n«2»def foof«3»:\r\n«0»def main:\r\n    «1»4\r\n```\r\ncompletely breaking our double representation.\n\n"},"comment":{"url":"https://api.github.com/repos/luna/luna/issues/comments/418264492","html_url":"https://github.com/luna/luna/issues/242#issuecomment-418264492","issue_url":"https://api.github.com/repos/luna/luna/issues/242","id":418264492,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODI2NDQ5Mg==","user":{"login":"wdanilo","id":1623053,"node_id":"MDQ6VXNlcjE2MjMwNTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1623053?v=4","gravatar_id":"","url":"https://api.github.com/users/wdanilo","html_url":"https://github.com/wdanilo","followers_url":"https://api.github.com/users/wdanilo/followers","following_url":"https://api.github.com/users/wdanilo/following{/other_user}","gists_url":"https://api.github.com/users/wdanilo/gists{/gist_id}","starred_url":"https://api.github.com/users/wdanilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdanilo/subscriptions","organizations_url":"https://api.github.com/users/wdanilo/orgs","repos_url":"https://api.github.com/users/wdanilo/repos","events_url":"https://api.github.com/users/wdanilo/events{/privacy}","received_events_url":"https://api.github.com/users/wdanilo/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T07:11:37Z","updated_at":"2018-09-04T07:11:37Z","author_association":"MEMBER","body":"Fixed in new parser"}}
{"actor":{"display_login":"wdanilo"}}