{"action":"created","comment":{"url":"https://api.github.com/repos/dtolnay/syn/pulls/comments/80823965","pull_request_review_id":1851499,"id":80823965,"diff_hunk":"@@ -549,6 +550,21 @@ pub mod parsing {\n         ))\n     ));\n \n+    named!(expr_loop -> Expr, do_parse!(\n+        id: option!(\n+            terminated!(\n+                preceded!(\n+                    punct!(\"'\"),\n+                    ident),\n+                punct!(\":\"))) >>\n+            punct!(\"loop\") >>","path":"src/expr.rs","position":21,"original_position":21,"commit_id":"e5f3568a7f1b4266c47c914b6e1ee7653b09a1e0","original_commit_id":"e5f3568a7f1b4266c47c914b6e1ee7653b09a1e0","user":{"login":"dtolnay","id":1940490,"avatar_url":"https://avatars.githubusercontent.com/u/1940490?v=3","gravatar_id":"","url":"https://api.github.com/users/dtolnay","html_url":"https://github.com/dtolnay","followers_url":"https://api.github.com/users/dtolnay/followers","following_url":"https://api.github.com/users/dtolnay/following{/other_user}","gists_url":"https://api.github.com/users/dtolnay/gists{/gist_id}","starred_url":"https://api.github.com/users/dtolnay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtolnay/subscriptions","organizations_url":"https://api.github.com/users/dtolnay/orgs","repos_url":"https://api.github.com/users/dtolnay/repos","events_url":"https://api.github.com/users/dtolnay/events{/privacy}","received_events_url":"https://api.github.com/users/dtolnay/received_events","type":"User","site_admin":false},"body":"Same indentation as the *next* line.","created_at":"2016-09-28T00:27:47Z","updated_at":"2016-09-28T00:27:52Z","html_url":"https://github.com/dtolnay/syn/pull/14#discussion_r80823965","pull_request_url":"https://api.github.com/repos/dtolnay/syn/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/dtolnay/syn/pulls/comments/80823965"},"html":{"href":"https://github.com/dtolnay/syn/pull/14#discussion_r80823965"},"pull_request":{"href":"https://api.github.com/repos/dtolnay/syn/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/dtolnay/syn/pulls/14","id":87033648,"html_url":"https://github.com/dtolnay/syn/pull/14","diff_url":"https://github.com/dtolnay/syn/pull/14.diff","patch_url":"https://github.com/dtolnay/syn/pull/14.patch","issue_url":"https://api.github.com/repos/dtolnay/syn/issues/14","number":14,"state":"open","locked":false,"title":"Added an infinite loop parser and tests.","user":{"login":"gregkatz","id":3066927,"avatar_url":"https://avatars.githubusercontent.com/u/3066927?v=3","gravatar_id":"","url":"https://api.github.com/users/gregkatz","html_url":"https://github.com/gregkatz","followers_url":"https://api.github.com/users/gregkatz/followers","following_url":"https://api.github.com/users/gregkatz/following{/other_user}","gists_url":"https://api.github.com/users/gregkatz/gists{/gist_id}","starred_url":"https://api.github.com/users/gregkatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregkatz/subscriptions","organizations_url":"https://api.github.com/users/gregkatz/orgs","repos_url":"https://api.github.com/users/gregkatz/repos","events_url":"https://api.github.com/users/gregkatz/events{/privacy}","received_events_url":"https://api.github.com/users/gregkatz/received_events","type":"User","site_admin":false},"body":"This pull request adds the ability to parse `loop{}`.\r\n\r\nA couple things: \r\n\r\nI had trouble with emacs and nom's syntax, so if the spacing is off, I apologize. Do you know how to make an editor handle spacing and indentation well for nom macros?\r\n\r\nFor the tests, I used tuples as statements in the body of the loop, because that's what I could get to parse.\r\n\r\nLet me know comments and changes and I'll be glad to make them!","created_at":"2016-09-27T23:59:23Z","updated_at":"2016-09-28T00:27:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b8d309b052964b0fa1ce33a15fc3586c7d075b7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dtolnay/syn/pulls/14/commits","review_comments_url":"https://api.github.com/repos/dtolnay/syn/pulls/14/comments","review_comment_url":"https://api.github.com/repos/dtolnay/syn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dtolnay/syn/issues/14/comments","statuses_url":"https://api.github.com/repos/dtolnay/syn/statuses/e5f3568a7f1b4266c47c914b6e1ee7653b09a1e0","head":{"label":"gregkatz:master","ref":"master","sha":"e5f3568a7f1b4266c47c914b6e1ee7653b09a1e0","user":{"login":"gregkatz","id":3066927,"avatar_url":"https://avatars.githubusercontent.com/u/3066927?v=3","gravatar_id":"","url":"https://api.github.com/users/gregkatz","html_url":"https://github.com/gregkatz","followers_url":"https://api.github.com/users/gregkatz/followers","following_url":"https://api.github.com/users/gregkatz/following{/other_user}","gists_url":"https://api.github.com/users/gregkatz/gists{/gist_id}","starred_url":"https://api.github.com/users/gregkatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregkatz/subscriptions","organizations_url":"https://api.github.com/users/gregkatz/orgs","repos_url":"https://api.github.com/users/gregkatz/repos","events_url":"https://api.github.com/users/gregkatz/events{/privacy}","received_events_url":"https://api.github.com/users/gregkatz/received_events","type":"User","site_admin":false},"repo":{"id":69407502,"name":"syn","full_name":"gregkatz/syn","owner":{"login":"gregkatz","id":3066927,"avatar_url":"https://avatars.githubusercontent.com/u/3066927?v=3","gravatar_id":"","url":"https://api.github.com/users/gregkatz","html_url":"https://github.com/gregkatz","followers_url":"https://api.github.com/users/gregkatz/followers","following_url":"https://api.github.com/users/gregkatz/following{/other_user}","gists_url":"https://api.github.com/users/gregkatz/gists{/gist_id}","starred_url":"https://api.github.com/users/gregkatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregkatz/subscriptions","organizations_url":"https://api.github.com/users/gregkatz/orgs","repos_url":"https://api.github.com/users/gregkatz/repos","events_url":"https://api.github.com/users/gregkatz/events{/privacy}","received_events_url":"https://api.github.com/users/gregkatz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gregkatz/syn","description":"Nom parser for Rust items","fork":true,"url":"https://api.github.com/repos/gregkatz/syn","forks_url":"https://api.github.com/repos/gregkatz/syn/forks","keys_url":"https://api.github.com/repos/gregkatz/syn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gregkatz/syn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gregkatz/syn/teams","hooks_url":"https://api.github.com/repos/gregkatz/syn/hooks","issue_events_url":"https://api.github.com/repos/gregkatz/syn/issues/events{/number}","events_url":"https://api.github.com/repos/gregkatz/syn/events","assignees_url":"https://api.github.com/repos/gregkatz/syn/assignees{/user}","branches_url":"https://api.github.com/repos/gregkatz/syn/branches{/branch}","tags_url":"https://api.github.com/repos/gregkatz/syn/tags","blobs_url":"https://api.github.com/repos/gregkatz/syn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gregkatz/syn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gregkatz/syn/git/refs{/sha}","trees_url":"https://api.github.com/repos/gregkatz/syn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gregkatz/syn/statuses/{sha}","languages_url":"https://api.github.com/repos/gregkatz/syn/languages","stargazers_url":"https://api.github.com/repos/gregkatz/syn/stargazers","contributors_url":"https://api.github.com/repos/gregkatz/syn/contributors","subscribers_url":"https://api.github.com/repos/gregkatz/syn/subscribers","subscription_url":"https://api.github.com/repos/gregkatz/syn/subscription","commits_url":"https://api.github.com/repos/gregkatz/syn/commits{/sha}","git_commits_url":"https://api.github.com/repos/gregkatz/syn/git/commits{/sha}","comments_url":"https://api.github.com/repos/gregkatz/syn/comments{/number}","issue_comment_url":"https://api.github.com/repos/gregkatz/syn/issues/comments{/number}","contents_url":"https://api.github.com/repos/gregkatz/syn/contents/{+path}","compare_url":"https://api.github.com/repos/gregkatz/syn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gregkatz/syn/merges","archive_url":"https://api.github.com/repos/gregkatz/syn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gregkatz/syn/downloads","issues_url":"https://api.github.com/repos/gregkatz/syn/issues{/number}","pulls_url":"https://api.github.com/repos/gregkatz/syn/pulls{/number}","milestones_url":"https://api.github.com/repos/gregkatz/syn/milestones{/number}","notifications_url":"https://api.github.com/repos/gregkatz/syn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gregkatz/syn/labels{/name}","releases_url":"https://api.github.com/repos/gregkatz/syn/releases{/id}","deployments_url":"https://api.github.com/repos/gregkatz/syn/deployments","created_at":"2016-09-27T23:37:56Z","updated_at":"2016-09-27T23:37:57Z","pushed_at":"2016-09-27T23:38:06Z","git_url":"git://github.com/gregkatz/syn.git","ssh_url":"git@github.com:gregkatz/syn.git","clone_url":"https://github.com/gregkatz/syn.git","svn_url":"https://github.com/gregkatz/syn","homepage":null,"size":915,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dtolnay:master","ref":"master","sha":"a3faf259f2620fc6cc38d81b96a6814716f119b6","user":{"login":"dtolnay","id":1940490,"avatar_url":"https://avatars.githubusercontent.com/u/1940490?v=3","gravatar_id":"","url":"https://api.github.com/users/dtolnay","html_url":"https://github.com/dtolnay","followers_url":"https://api.github.com/users/dtolnay/followers","following_url":"https://api.github.com/users/dtolnay/following{/other_user}","gists_url":"https://api.github.com/users/dtolnay/gists{/gist_id}","starred_url":"https://api.github.com/users/dtolnay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtolnay/subscriptions","organizations_url":"https://api.github.com/users/dtolnay/orgs","repos_url":"https://api.github.com/users/dtolnay/repos","events_url":"https://api.github.com/users/dtolnay/events{/privacy}","received_events_url":"https://api.github.com/users/dtolnay/received_events","type":"User","site_admin":false},"repo":{"id":67305738,"name":"syn","full_name":"dtolnay/syn","owner":{"login":"dtolnay","id":1940490,"avatar_url":"https://avatars.githubusercontent.com/u/1940490?v=3","gravatar_id":"","url":"https://api.github.com/users/dtolnay","html_url":"https://github.com/dtolnay","followers_url":"https://api.github.com/users/dtolnay/followers","following_url":"https://api.github.com/users/dtolnay/following{/other_user}","gists_url":"https://api.github.com/users/dtolnay/gists{/gist_id}","starred_url":"https://api.github.com/users/dtolnay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtolnay/subscriptions","organizations_url":"https://api.github.com/users/dtolnay/orgs","repos_url":"https://api.github.com/users/dtolnay/repos","events_url":"https://api.github.com/users/dtolnay/events{/privacy}","received_events_url":"https://api.github.com/users/dtolnay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dtolnay/syn","description":"Nom parser for Rust items","fork":false,"url":"https://api.github.com/repos/dtolnay/syn","forks_url":"https://api.github.com/repos/dtolnay/syn/forks","keys_url":"https://api.github.com/repos/dtolnay/syn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dtolnay/syn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dtolnay/syn/teams","hooks_url":"https://api.github.com/repos/dtolnay/syn/hooks","issue_events_url":"https://api.github.com/repos/dtolnay/syn/issues/events{/number}","events_url":"https://api.github.com/repos/dtolnay/syn/events","assignees_url":"https://api.github.com/repos/dtolnay/syn/assignees{/user}","branches_url":"https://api.github.com/repos/dtolnay/syn/branches{/branch}","tags_url":"https://api.github.com/repos/dtolnay/syn/tags","blobs_url":"https://api.github.com/repos/dtolnay/syn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dtolnay/syn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dtolnay/syn/git/refs{/sha}","trees_url":"https://api.github.com/repos/dtolnay/syn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dtolnay/syn/statuses/{sha}","languages_url":"https://api.github.com/repos/dtolnay/syn/languages","stargazers_url":"https://api.github.com/repos/dtolnay/syn/stargazers","contributors_url":"https://api.github.com/repos/dtolnay/syn/contributors","subscribers_url":"https://api.github.com/repos/dtolnay/syn/subscribers","subscription_url":"https://api.github.com/repos/dtolnay/syn/subscription","commits_url":"https://api.github.com/repos/dtolnay/syn/commits{/sha}","git_commits_url":"https://api.github.com/repos/dtolnay/syn/git/commits{/sha}","comments_url":"https://api.github.com/repos/dtolnay/syn/comments{/number}","issue_comment_url":"https://api.github.com/repos/dtolnay/syn/issues/comments{/number}","contents_url":"https://api.github.com/repos/dtolnay/syn/contents/{+path}","compare_url":"https://api.github.com/repos/dtolnay/syn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dtolnay/syn/merges","archive_url":"https://api.github.com/repos/dtolnay/syn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dtolnay/syn/downloads","issues_url":"https://api.github.com/repos/dtolnay/syn/issues{/number}","pulls_url":"https://api.github.com/repos/dtolnay/syn/pulls{/number}","milestones_url":"https://api.github.com/repos/dtolnay/syn/milestones{/number}","notifications_url":"https://api.github.com/repos/dtolnay/syn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dtolnay/syn/labels{/name}","releases_url":"https://api.github.com/repos/dtolnay/syn/releases{/id}","deployments_url":"https://api.github.com/repos/dtolnay/syn/deployments","created_at":"2016-09-03T18:35:01Z","updated_at":"2016-09-27T12:33:14Z","pushed_at":"2016-09-27T23:59:24Z","git_url":"git://github.com/dtolnay/syn.git","ssh_url":"git@github.com:dtolnay/syn.git","clone_url":"https://github.com/dtolnay/syn.git","svn_url":"https://github.com/dtolnay/syn","homepage":null,"size":915,"stargazers_count":12,"watchers_count":12,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dtolnay/syn/pulls/14"},"html":{"href":"https://github.com/dtolnay/syn/pull/14"},"issue":{"href":"https://api.github.com/repos/dtolnay/syn/issues/14"},"comments":{"href":"https://api.github.com/repos/dtolnay/syn/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/dtolnay/syn/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/dtolnay/syn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dtolnay/syn/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/dtolnay/syn/statuses/e5f3568a7f1b4266c47c914b6e1ee7653b09a1e0"}}}}
{"actor":{"display_login":"dtolnay"}}