{"action":"created","comment":{"url":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/comments/41853374","id":41853374,"diff_hunk":"@@ -3634,10 +3634,78 @@ var fbTestFixture = {\n if (typeof exports !== \"undefined\") {\n   var test = require(\"./driver.js\").test;\n   var testFail = require(\"./driver.js\").testFail;\n+  var tokTypes = require(\"../\").tokTypes;\n }\n \n testFail(\"var x = <div>one</div><div>two</div>;\", \"Adjacent JSX elements must be wrapped in an enclosing tag (1:22)\");\n \n+test('<a>{/* foo */}</a>', {}, {\n+  ranges: true,","path":"test/tests-jsx.js","position":10,"original_position":10,"commit_id":"7daf42ac98d85933188f8b37e3c64d0b1d637c49","original_commit_id":"7daf42ac98d85933188f8b37e3c64d0b1d637c49","user":{"login":"RReverser","id":557590,"avatar_url":"https://avatars.githubusercontent.com/u/557590?v=3","gravatar_id":"","url":"https://api.github.com/users/RReverser","html_url":"https://github.com/RReverser","followers_url":"https://api.github.com/users/RReverser/followers","following_url":"https://api.github.com/users/RReverser/following{/other_user}","gists_url":"https://api.github.com/users/RReverser/gists{/gist_id}","starred_url":"https://api.github.com/users/RReverser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RReverser/subscriptions","organizations_url":"https://api.github.com/users/RReverser/orgs","repos_url":"https://api.github.com/users/RReverser/repos","events_url":"https://api.github.com/users/RReverser/events{/privacy}","received_events_url":"https://api.github.com/users/RReverser/received_events","type":"User","site_admin":false},"body":"`ranges` and `loose` are not needed in this case - first one checks `range` props and second marks test as such that shouldn't be checked against loose parser - which JSX doesn't have anyway.","created_at":"2015-10-13T11:12:21Z","updated_at":"2015-10-13T11:12:21Z","html_url":"https://github.com/RReverser/acorn-jsx/pull/31#discussion_r41853374","pull_request_url":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/comments/41853374"},"html":{"href":"https://github.com/RReverser/acorn-jsx/pull/31#discussion_r41853374"},"pull_request":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31","id":47464669,"html_url":"https://github.com/RReverser/acorn-jsx/pull/31","diff_url":"https://github.com/RReverser/acorn-jsx/pull/31.diff","patch_url":"https://github.com/RReverser/acorn-jsx/pull/31.patch","issue_url":"https://api.github.com/repos/RReverser/acorn-jsx/issues/31","number":31,"state":"open","locked":false,"title":"Ensure empty expression tokens ranges are correct","user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"body":"Turned out a little bit of trickery in parsing empty expressions was the cause. Still trying to learn how location is calculated, so let me know if this change makes sense.\r\n\r\nFixes #28 ","created_at":"2015-10-12T21:08:15Z","updated_at":"2015-10-13T11:12:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"756a75812fda7d27af815164a669290e8d93db99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31/commits","review_comments_url":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31/comments","review_comment_url":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RReverser/acorn-jsx/issues/31/comments","statuses_url":"https://api.github.com/repos/RReverser/acorn-jsx/statuses/7daf42ac98d85933188f8b37e3c64d0b1d637c49","head":{"label":"nzakas:issue28","ref":"issue28","sha":"7daf42ac98d85933188f8b37e3c64d0b1d637c49","user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"repo":{"id":44123484,"name":"acorn-jsx","full_name":"nzakas/acorn-jsx","owner":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nzakas/acorn-jsx","description":"Alternative, faster React.js JSX parser","fork":true,"url":"https://api.github.com/repos/nzakas/acorn-jsx","forks_url":"https://api.github.com/repos/nzakas/acorn-jsx/forks","keys_url":"https://api.github.com/repos/nzakas/acorn-jsx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nzakas/acorn-jsx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nzakas/acorn-jsx/teams","hooks_url":"https://api.github.com/repos/nzakas/acorn-jsx/hooks","issue_events_url":"https://api.github.com/repos/nzakas/acorn-jsx/issues/events{/number}","events_url":"https://api.github.com/repos/nzakas/acorn-jsx/events","assignees_url":"https://api.github.com/repos/nzakas/acorn-jsx/assignees{/user}","branches_url":"https://api.github.com/repos/nzakas/acorn-jsx/branches{/branch}","tags_url":"https://api.github.com/repos/nzakas/acorn-jsx/tags","blobs_url":"https://api.github.com/repos/nzakas/acorn-jsx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nzakas/acorn-jsx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nzakas/acorn-jsx/git/refs{/sha}","trees_url":"https://api.github.com/repos/nzakas/acorn-jsx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nzakas/acorn-jsx/statuses/{sha}","languages_url":"https://api.github.com/repos/nzakas/acorn-jsx/languages","stargazers_url":"https://api.github.com/repos/nzakas/acorn-jsx/stargazers","contributors_url":"https://api.github.com/repos/nzakas/acorn-jsx/contributors","subscribers_url":"https://api.github.com/repos/nzakas/acorn-jsx/subscribers","subscription_url":"https://api.github.com/repos/nzakas/acorn-jsx/subscription","commits_url":"https://api.github.com/repos/nzakas/acorn-jsx/commits{/sha}","git_commits_url":"https://api.github.com/repos/nzakas/acorn-jsx/git/commits{/sha}","comments_url":"https://api.github.com/repos/nzakas/acorn-jsx/comments{/number}","issue_comment_url":"https://api.github.com/repos/nzakas/acorn-jsx/issues/comments{/number}","contents_url":"https://api.github.com/repos/nzakas/acorn-jsx/contents/{+path}","compare_url":"https://api.github.com/repos/nzakas/acorn-jsx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nzakas/acorn-jsx/merges","archive_url":"https://api.github.com/repos/nzakas/acorn-jsx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nzakas/acorn-jsx/downloads","issues_url":"https://api.github.com/repos/nzakas/acorn-jsx/issues{/number}","pulls_url":"https://api.github.com/repos/nzakas/acorn-jsx/pulls{/number}","milestones_url":"https://api.github.com/repos/nzakas/acorn-jsx/milestones{/number}","notifications_url":"https://api.github.com/repos/nzakas/acorn-jsx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nzakas/acorn-jsx/labels{/name}","releases_url":"https://api.github.com/repos/nzakas/acorn-jsx/releases{/id}","created_at":"2015-10-12T17:40:21Z","updated_at":"2015-10-12T17:40:22Z","pushed_at":"2015-10-12T21:07:06Z","git_url":"git://github.com/nzakas/acorn-jsx.git","ssh_url":"git@github.com:nzakas/acorn-jsx.git","clone_url":"https://github.com/nzakas/acorn-jsx.git","svn_url":"https://github.com/nzakas/acorn-jsx","homepage":null,"size":2577,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"RReverser:master","ref":"master","sha":"72d617472d54ea2ab3843eef533307c9129a95f5","user":{"login":"RReverser","id":557590,"avatar_url":"https://avatars.githubusercontent.com/u/557590?v=3","gravatar_id":"","url":"https://api.github.com/users/RReverser","html_url":"https://github.com/RReverser","followers_url":"https://api.github.com/users/RReverser/followers","following_url":"https://api.github.com/users/RReverser/following{/other_user}","gists_url":"https://api.github.com/users/RReverser/gists{/gist_id}","starred_url":"https://api.github.com/users/RReverser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RReverser/subscriptions","organizations_url":"https://api.github.com/users/RReverser/orgs","repos_url":"https://api.github.com/users/RReverser/repos","events_url":"https://api.github.com/users/RReverser/events{/privacy}","received_events_url":"https://api.github.com/users/RReverser/received_events","type":"User","site_admin":false},"repo":{"id":22187098,"name":"acorn-jsx","full_name":"RReverser/acorn-jsx","owner":{"login":"RReverser","id":557590,"avatar_url":"https://avatars.githubusercontent.com/u/557590?v=3","gravatar_id":"","url":"https://api.github.com/users/RReverser","html_url":"https://github.com/RReverser","followers_url":"https://api.github.com/users/RReverser/followers","following_url":"https://api.github.com/users/RReverser/following{/other_user}","gists_url":"https://api.github.com/users/RReverser/gists{/gist_id}","starred_url":"https://api.github.com/users/RReverser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RReverser/subscriptions","organizations_url":"https://api.github.com/users/RReverser/orgs","repos_url":"https://api.github.com/users/RReverser/repos","events_url":"https://api.github.com/users/RReverser/events{/privacy}","received_events_url":"https://api.github.com/users/RReverser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RReverser/acorn-jsx","description":"Alternative, faster React.js JSX parser","fork":false,"url":"https://api.github.com/repos/RReverser/acorn-jsx","forks_url":"https://api.github.com/repos/RReverser/acorn-jsx/forks","keys_url":"https://api.github.com/repos/RReverser/acorn-jsx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RReverser/acorn-jsx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RReverser/acorn-jsx/teams","hooks_url":"https://api.github.com/repos/RReverser/acorn-jsx/hooks","issue_events_url":"https://api.github.com/repos/RReverser/acorn-jsx/issues/events{/number}","events_url":"https://api.github.com/repos/RReverser/acorn-jsx/events","assignees_url":"https://api.github.com/repos/RReverser/acorn-jsx/assignees{/user}","branches_url":"https://api.github.com/repos/RReverser/acorn-jsx/branches{/branch}","tags_url":"https://api.github.com/repos/RReverser/acorn-jsx/tags","blobs_url":"https://api.github.com/repos/RReverser/acorn-jsx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RReverser/acorn-jsx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RReverser/acorn-jsx/git/refs{/sha}","trees_url":"https://api.github.com/repos/RReverser/acorn-jsx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RReverser/acorn-jsx/statuses/{sha}","languages_url":"https://api.github.com/repos/RReverser/acorn-jsx/languages","stargazers_url":"https://api.github.com/repos/RReverser/acorn-jsx/stargazers","contributors_url":"https://api.github.com/repos/RReverser/acorn-jsx/contributors","subscribers_url":"https://api.github.com/repos/RReverser/acorn-jsx/subscribers","subscription_url":"https://api.github.com/repos/RReverser/acorn-jsx/subscription","commits_url":"https://api.github.com/repos/RReverser/acorn-jsx/commits{/sha}","git_commits_url":"https://api.github.com/repos/RReverser/acorn-jsx/git/commits{/sha}","comments_url":"https://api.github.com/repos/RReverser/acorn-jsx/comments{/number}","issue_comment_url":"https://api.github.com/repos/RReverser/acorn-jsx/issues/comments{/number}","contents_url":"https://api.github.com/repos/RReverser/acorn-jsx/contents/{+path}","compare_url":"https://api.github.com/repos/RReverser/acorn-jsx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RReverser/acorn-jsx/merges","archive_url":"https://api.github.com/repos/RReverser/acorn-jsx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RReverser/acorn-jsx/downloads","issues_url":"https://api.github.com/repos/RReverser/acorn-jsx/issues{/number}","pulls_url":"https://api.github.com/repos/RReverser/acorn-jsx/pulls{/number}","milestones_url":"https://api.github.com/repos/RReverser/acorn-jsx/milestones{/number}","notifications_url":"https://api.github.com/repos/RReverser/acorn-jsx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RReverser/acorn-jsx/labels{/name}","releases_url":"https://api.github.com/repos/RReverser/acorn-jsx/releases{/id}","created_at":"2014-07-23T23:53:35Z","updated_at":"2015-10-13T06:11:09Z","pushed_at":"2015-10-13T11:10:34Z","git_url":"git://github.com/RReverser/acorn-jsx.git","ssh_url":"git@github.com:RReverser/acorn-jsx.git","clone_url":"https://github.com/RReverser/acorn-jsx.git","svn_url":"https://github.com/RReverser/acorn-jsx","homepage":null,"size":2577,"stargazers_count":77,"watchers_count":77,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31"},"html":{"href":"https://github.com/RReverser/acorn-jsx/pull/31"},"issue":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/issues/31"},"comments":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/RReverser/acorn-jsx/statuses/7daf42ac98d85933188f8b37e3c64d0b1d637c49"}}}}