{"action":"opened","issue":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/231","labels_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/231/comments","events_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/231/events","html_url":"https://github.com/nikic/PHP-Parser/issues/231","id":108455318,"number":231,"title":"[Question] Is it possible to parse invalid php code (partially written)?","user":{"login":"docteurklein","id":109846,"avatar_url":"https://avatars.githubusercontent.com/u/109846?v=3","gravatar_id":"","url":"https://api.github.com/users/docteurklein","html_url":"https://github.com/docteurklein","followers_url":"https://api.github.com/users/docteurklein/followers","following_url":"https://api.github.com/users/docteurklein/following{/other_user}","gists_url":"https://api.github.com/users/docteurklein/gists{/gist_id}","starred_url":"https://api.github.com/users/docteurklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docteurklein/subscriptions","organizations_url":"https://api.github.com/users/docteurklein/orgs","repos_url":"https://api.github.com/users/docteurklein/repos","events_url":"https://api.github.com/users/docteurklein/events{/privacy}","received_events_url":"https://api.github.com/users/docteurklein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-26T10:58:45Z","updated_at":"2015-09-26T10:58:45Z","closed_at":null,"body":"I see that `token_get_all` tokenizes correctly an invalid content.\r\nCan I configure the parser's `unexpectedTokenRule` so that it accepts anything?\r\n\r\nMy goal is to parse partial, potentially invalid content to provide autocompletion options for php code."}}