{"action":"created","comment":{"url":"https://api.github.com/repos/scottfrazer/hermes/pulls/comments/34901312","id":34901312,"diff_hunk":"@@ -235,8 +235,8 @@ class DefaultSyntaxErrorHandler:\n         return error\n     def unexpected_eof(self):\n         return self._error(\"Error: unexpected end of file\")\n-    def excess_tokens(self):\n-        return self._error(\"Finished parsing without consuming all tokens.\")\n+    def excess_tokens(self, next_token):\n+        return self._error(\"Finished parsing without consuming all tokens.  Next token was {next}\".format(next=next_token))","path":"hermes/templates/python/template.py.tpl","position":7,"original_position":7,"commit_id":"3740f7bcf47e777ddc8a2f9a4b7570dfe4295472","original_commit_id":"3740f7bcf47e777ddc8a2f9a4b7570dfe4295472","user":{"login":"pgm","id":10578,"avatar_url":"https://avatars.githubusercontent.com/u/10578?v=3","gravatar_id":"","url":"https://api.github.com/users/pgm","html_url":"https://github.com/pgm","followers_url":"https://api.github.com/users/pgm/followers","following_url":"https://api.github.com/users/pgm/following{/other_user}","gists_url":"https://api.github.com/users/pgm/gists{/gist_id}","starred_url":"https://api.github.com/users/pgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgm/subscriptions","organizations_url":"https://api.github.com/users/pgm/orgs","repos_url":"https://api.github.com/users/pgm/repos","events_url":"https://api.github.com/users/pgm/events{/privacy}","received_events_url":"https://api.github.com/users/pgm/received_events","type":"User","site_admin":false},"body":"Ah, I didn't realize there were tests for hermes.  That's good to know.  But back to the root issue, I can make the error msg consistent across languages some time. ","created_at":"2015-07-17T15:39:34Z","updated_at":"2015-07-17T15:39:34Z","html_url":"https://github.com/scottfrazer/hermes/pull/51#discussion_r34901312","pull_request_url":"https://api.github.com/repos/scottfrazer/hermes/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/scottfrazer/hermes/pulls/comments/34901312"},"html":{"href":"https://github.com/scottfrazer/hermes/pull/51#discussion_r34901312"},"pull_request":{"href":"https://api.github.com/repos/scottfrazer/hermes/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/scottfrazer/hermes/pulls/51","id":40022653,"html_url":"https://github.com/scottfrazer/hermes/pull/51","diff_url":"https://github.com/scottfrazer/hermes/pull/51.diff","patch_url":"https://github.com/scottfrazer/hermes/pull/51.patch","issue_url":"https://api.github.com/repos/scottfrazer/hermes/issues/51","number":51,"state":"open","locked":false,"title":"Improved error message for excess_tokens()","user":{"login":"pgm","id":10578,"avatar_url":"https://avatars.githubusercontent.com/u/10578?v=3","gravatar_id":"","url":"https://api.github.com/users/pgm","html_url":"https://github.com/pgm","followers_url":"https://api.github.com/users/pgm/followers","following_url":"https://api.github.com/users/pgm/following{/other_user}","gists_url":"https://api.github.com/users/pgm/gists{/gist_id}","starred_url":"https://api.github.com/users/pgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgm/subscriptions","organizations_url":"https://api.github.com/users/pgm/orgs","repos_url":"https://api.github.com/users/pgm/repos","events_url":"https://api.github.com/users/pgm/events{/privacy}","received_events_url":"https://api.github.com/users/pgm/received_events","type":"User","site_admin":false},"body":"Added next token to error message when extra tokens remain in the token stream","created_at":"2015-07-15T13:33:18Z","updated_at":"2015-07-17T15:39:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fde2e8267ff92a445964ed4707bab7e4416bdb7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scottfrazer/hermes/pulls/51/commits","review_comments_url":"https://api.github.com/repos/scottfrazer/hermes/pulls/51/comments","review_comment_url":"https://api.github.com/repos/scottfrazer/hermes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scottfrazer/hermes/issues/51/comments","statuses_url":"https://api.github.com/repos/scottfrazer/hermes/statuses/3740f7bcf47e777ddc8a2f9a4b7570dfe4295472","head":{"label":"pgm:develop","ref":"develop","sha":"3740f7bcf47e777ddc8a2f9a4b7570dfe4295472","user":{"login":"pgm","id":10578,"avatar_url":"https://avatars.githubusercontent.com/u/10578?v=3","gravatar_id":"","url":"https://api.github.com/users/pgm","html_url":"https://github.com/pgm","followers_url":"https://api.github.com/users/pgm/followers","following_url":"https://api.github.com/users/pgm/following{/other_user}","gists_url":"https://api.github.com/users/pgm/gists{/gist_id}","starred_url":"https://api.github.com/users/pgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgm/subscriptions","organizations_url":"https://api.github.com/users/pgm/orgs","repos_url":"https://api.github.com/users/pgm/repos","events_url":"https://api.github.com/users/pgm/events{/privacy}","received_events_url":"https://api.github.com/users/pgm/received_events","type":"User","site_admin":false},"repo":{"id":39136861,"name":"hermes","full_name":"pgm/hermes","owner":{"login":"pgm","id":10578,"avatar_url":"https://avatars.githubusercontent.com/u/10578?v=3","gravatar_id":"","url":"https://api.github.com/users/pgm","html_url":"https://github.com/pgm","followers_url":"https://api.github.com/users/pgm/followers","following_url":"https://api.github.com/users/pgm/following{/other_user}","gists_url":"https://api.github.com/users/pgm/gists{/gist_id}","starred_url":"https://api.github.com/users/pgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgm/subscriptions","organizations_url":"https://api.github.com/users/pgm/orgs","repos_url":"https://api.github.com/users/pgm/repos","events_url":"https://api.github.com/users/pgm/events{/privacy}","received_events_url":"https://api.github.com/users/pgm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pgm/hermes","description":"Python LL(1) Parser Generator with Expression Parsing","fork":true,"url":"https://api.github.com/repos/pgm/hermes","forks_url":"https://api.github.com/repos/pgm/hermes/forks","keys_url":"https://api.github.com/repos/pgm/hermes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pgm/hermes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pgm/hermes/teams","hooks_url":"https://api.github.com/repos/pgm/hermes/hooks","issue_events_url":"https://api.github.com/repos/pgm/hermes/issues/events{/number}","events_url":"https://api.github.com/repos/pgm/hermes/events","assignees_url":"https://api.github.com/repos/pgm/hermes/assignees{/user}","branches_url":"https://api.github.com/repos/pgm/hermes/branches{/branch}","tags_url":"https://api.github.com/repos/pgm/hermes/tags","blobs_url":"https://api.github.com/repos/pgm/hermes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pgm/hermes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pgm/hermes/git/refs{/sha}","trees_url":"https://api.github.com/repos/pgm/hermes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pgm/hermes/statuses/{sha}","languages_url":"https://api.github.com/repos/pgm/hermes/languages","stargazers_url":"https://api.github.com/repos/pgm/hermes/stargazers","contributors_url":"https://api.github.com/repos/pgm/hermes/contributors","subscribers_url":"https://api.github.com/repos/pgm/hermes/subscribers","subscription_url":"https://api.github.com/repos/pgm/hermes/subscription","commits_url":"https://api.github.com/repos/pgm/hermes/commits{/sha}","git_commits_url":"https://api.github.com/repos/pgm/hermes/git/commits{/sha}","comments_url":"https://api.github.com/repos/pgm/hermes/comments{/number}","issue_comment_url":"https://api.github.com/repos/pgm/hermes/issues/comments{/number}","contents_url":"https://api.github.com/repos/pgm/hermes/contents/{+path}","compare_url":"https://api.github.com/repos/pgm/hermes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pgm/hermes/merges","archive_url":"https://api.github.com/repos/pgm/hermes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pgm/hermes/downloads","issues_url":"https://api.github.com/repos/pgm/hermes/issues{/number}","pulls_url":"https://api.github.com/repos/pgm/hermes/pulls{/number}","milestones_url":"https://api.github.com/repos/pgm/hermes/milestones{/number}","notifications_url":"https://api.github.com/repos/pgm/hermes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pgm/hermes/labels{/name}","releases_url":"https://api.github.com/repos/pgm/hermes/releases{/id}","created_at":"2015-07-15T12:57:32Z","updated_at":"2015-07-15T12:57:35Z","pushed_at":"2015-07-15T13:06:49Z","git_url":"git://github.com/pgm/hermes.git","ssh_url":"git@github.com:pgm/hermes.git","clone_url":"https://github.com/pgm/hermes.git","svn_url":"https://github.com/pgm/hermes","homepage":"http://hermes.readthedocs.org/","size":2460,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"scottfrazer:develop","ref":"develop","sha":"115045a152644d41efcf23d1e632489503c28e2d","user":{"login":"scottfrazer","id":58551,"avatar_url":"https://avatars.githubusercontent.com/u/58551?v=3","gravatar_id":"","url":"https://api.github.com/users/scottfrazer","html_url":"https://github.com/scottfrazer","followers_url":"https://api.github.com/users/scottfrazer/followers","following_url":"https://api.github.com/users/scottfrazer/following{/other_user}","gists_url":"https://api.github.com/users/scottfrazer/gists{/gist_id}","starred_url":"https://api.github.com/users/scottfrazer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottfrazer/subscriptions","organizations_url":"https://api.github.com/users/scottfrazer/orgs","repos_url":"https://api.github.com/users/scottfrazer/repos","events_url":"https://api.github.com/users/scottfrazer/events{/privacy}","received_events_url":"https://api.github.com/users/scottfrazer/received_events","type":"User","site_admin":false},"repo":{"id":1691534,"name":"hermes","full_name":"scottfrazer/hermes","owner":{"login":"scottfrazer","id":58551,"avatar_url":"https://avatars.githubusercontent.com/u/58551?v=3","gravatar_id":"","url":"https://api.github.com/users/scottfrazer","html_url":"https://github.com/scottfrazer","followers_url":"https://api.github.com/users/scottfrazer/followers","following_url":"https://api.github.com/users/scottfrazer/following{/other_user}","gists_url":"https://api.github.com/users/scottfrazer/gists{/gist_id}","starred_url":"https://api.github.com/users/scottfrazer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottfrazer/subscriptions","organizations_url":"https://api.github.com/users/scottfrazer/orgs","repos_url":"https://api.github.com/users/scottfrazer/repos","events_url":"https://api.github.com/users/scottfrazer/events{/privacy}","received_events_url":"https://api.github.com/users/scottfrazer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottfrazer/hermes","description":"Python LL(1) Parser Generator with Expression Parsing","fork":false,"url":"https://api.github.com/repos/scottfrazer/hermes","forks_url":"https://api.github.com/repos/scottfrazer/hermes/forks","keys_url":"https://api.github.com/repos/scottfrazer/hermes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottfrazer/hermes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottfrazer/hermes/teams","hooks_url":"https://api.github.com/repos/scottfrazer/hermes/hooks","issue_events_url":"https://api.github.com/repos/scottfrazer/hermes/issues/events{/number}","events_url":"https://api.github.com/repos/scottfrazer/hermes/events","assignees_url":"https://api.github.com/repos/scottfrazer/hermes/assignees{/user}","branches_url":"https://api.github.com/repos/scottfrazer/hermes/branches{/branch}","tags_url":"https://api.github.com/repos/scottfrazer/hermes/tags","blobs_url":"https://api.github.com/repos/scottfrazer/hermes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottfrazer/hermes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottfrazer/hermes/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottfrazer/hermes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottfrazer/hermes/statuses/{sha}","languages_url":"https://api.github.com/repos/scottfrazer/hermes/languages","stargazers_url":"https://api.github.com/repos/scottfrazer/hermes/stargazers","contributors_url":"https://api.github.com/repos/scottfrazer/hermes/contributors","subscribers_url":"https://api.github.com/repos/scottfrazer/hermes/subscribers","subscription_url":"https://api.github.com/repos/scottfrazer/hermes/subscription","commits_url":"https://api.github.com/repos/scottfrazer/hermes/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottfrazer/hermes/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottfrazer/hermes/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottfrazer/hermes/issues/comments{/number}","contents_url":"https://api.github.com/repos/scottfrazer/hermes/contents/{+path}","compare_url":"https://api.github.com/repos/scottfrazer/hermes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottfrazer/hermes/merges","archive_url":"https://api.github.com/repos/scottfrazer/hermes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottfrazer/hermes/downloads","issues_url":"https://api.github.com/repos/scottfrazer/hermes/issues{/number}","pulls_url":"https://api.github.com/repos/scottfrazer/hermes/pulls{/number}","milestones_url":"https://api.github.com/repos/scottfrazer/hermes/milestones{/number}","notifications_url":"https://api.github.com/repos/scottfrazer/hermes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottfrazer/hermes/labels{/name}","releases_url":"https://api.github.com/repos/scottfrazer/hermes/releases{/id}","created_at":"2011-05-02T14:26:09Z","updated_at":"2015-05-05T01:07:03Z","pushed_at":"2015-07-15T13:33:18Z","git_url":"git://github.com/scottfrazer/hermes.git","ssh_url":"git@github.com:scottfrazer/hermes.git","clone_url":"https://github.com/scottfrazer/hermes.git","svn_url":"https://github.com/scottfrazer/hermes","homepage":"http://hermes.readthedocs.org/","size":3051,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":18,"forks":2,"open_issues":18,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/scottfrazer/hermes/pulls/51"},"html":{"href":"https://github.com/scottfrazer/hermes/pull/51"},"issue":{"href":"https://api.github.com/repos/scottfrazer/hermes/issues/51"},"comments":{"href":"https://api.github.com/repos/scottfrazer/hermes/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/scottfrazer/hermes/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/scottfrazer/hermes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scottfrazer/hermes/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/scottfrazer/hermes/statuses/3740f7bcf47e777ddc8a2f9a4b7570dfe4295472"}}}}