{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/moonscript/issues/217","labels_url":"https://api.github.com/repos/leafo/moonscript/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/leafo/moonscript/issues/217/comments","events_url":"https://api.github.com/repos/leafo/moonscript/issues/217/events","html_url":"https://github.com/leafo/moonscript/pull/217","id":108641114,"number":217,"title":"implemented litmoon","user":{"login":"nonchip","id":601018,"avatar_url":"https://avatars.githubusercontent.com/u/601018?v=3","gravatar_id":"","url":"https://api.github.com/users/nonchip","html_url":"https://github.com/nonchip","followers_url":"https://api.github.com/users/nonchip/followers","following_url":"https://api.github.com/users/nonchip/following{/other_user}","gists_url":"https://api.github.com/users/nonchip/gists{/gist_id}","starred_url":"https://api.github.com/users/nonchip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonchip/subscriptions","organizations_url":"https://api.github.com/users/nonchip/orgs","repos_url":"https://api.github.com/users/nonchip/repos","events_url":"https://api.github.com/users/nonchip/events{/privacy}","received_events_url":"https://api.github.com/users/nonchip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T11:41:51Z","updated_at":"2015-09-28T11:57:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/leafo/moonscript/pulls/217","html_url":"https://github.com/leafo/moonscript/pull/217","diff_url":"https://github.com/leafo/moonscript/pull/217.diff","patch_url":"https://github.com/leafo/moonscript/pull/217.patch"},"body":"there you go. using lpeg this time, because what the hell did I hack there before :P\r\n\r\ntried to break as little as possible, and went with a factory approach where I always default to litmoon=false and generate the default functions in case someone was depending on them somewhere else.\r\n\r\ngeneral idea:\r\n\r\n    - some_func=(...) -> blah\r\n    + some_func_factory(litmoon=false) -> (...) blah\r\n    + some_func = some_func_factory!\r\n\r\nalso the mechanism for filtering is actually pretty simple: extend `moonscript.parser.literals.EmptyLine` and redefine `Line` as `EmptyLine + CheckIndent * Statement + Space * #Stop`"},"comment":{"url":"https://api.github.com/repos/leafo/moonscript/issues/comments/143723243","html_url":"https://github.com/leafo/moonscript/pull/217#issuecomment-143723243","issue_url":"https://api.github.com/repos/leafo/moonscript/issues/217","id":143723243,"user":{"login":"nonchip","id":601018,"avatar_url":"https://avatars.githubusercontent.com/u/601018?v=3","gravatar_id":"","url":"https://api.github.com/users/nonchip","html_url":"https://github.com/nonchip","followers_url":"https://api.github.com/users/nonchip/followers","following_url":"https://api.github.com/users/nonchip/following{/other_user}","gists_url":"https://api.github.com/users/nonchip/gists{/gist_id}","starred_url":"https://api.github.com/users/nonchip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonchip/subscriptions","organizations_url":"https://api.github.com/users/nonchip/orgs","repos_url":"https://api.github.com/users/nonchip/repos","events_url":"https://api.github.com/users/nonchip/events{/privacy}","received_events_url":"https://api.github.com/users/nonchip/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T11:57:48Z","updated_at":"2015-09-28T11:57:48Z","body":"done. `Line` must have `EmptyLine` at the end, not at the start."}}