{"action":"opened","issue":{"url":"https://api.github.com/repos/masak/007/issues/10","labels_url":"https://api.github.com/repos/masak/007/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/masak/007/issues/10/comments","events_url":"https://api.github.com/repos/masak/007/issues/10/events","html_url":"https://github.com/masak/007/issues/10","id":54784026,"number":10,"title":"Fail earlier and better on doomed parses","user":{"login":"masak","id":20627,"avatar_url":"https://avatars.githubusercontent.com/u/20627?v=3","gravatar_id":"","url":"https://api.github.com/users/masak","html_url":"https://github.com/masak","followers_url":"https://api.github.com/users/masak/followers","following_url":"https://api.github.com/users/masak/following{/other_user}","gists_url":"https://api.github.com/users/masak/gists{/gist_id}","starred_url":"https://api.github.com/users/masak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masak/subscriptions","organizations_url":"https://api.github.com/users/masak/orgs","repos_url":"https://api.github.com/users/masak/repos","events_url":"https://api.github.com/users/masak/events{/privacy}","received_events_url":"https://api.github.com/users/masak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-19T16:27:11Z","updated_at":"2015-01-19T16:27:11Z","closed_at":null,"body":"I just fixed two specific cases, namely when `my` and `sub` are followed by a non-identifier. Instead of backtracking and trying other rules (usually `statement:expr`, which is very general), the parser should just give up directly with a `<.panic>` call.\r\n\r\nSee [these two](https://github.com/masak/007/commit/662d9bf11444f50108c5398174029d7edcd6065a) [commits](https://github.com/masak/007/commit/d8f72bff95110e66afb437e2a852387e168db904) for inspiration on how to do this.\r\n\r\nThis issue can be closed when the parser has been combed for other opportunities like this, and `<.panic>` calls installed. As much as possible, each such `<.panic>` should be accompanied by a test in `t/syntax/errors.t`."}}