{"action":"created","comment":{"url":"https://api.github.com/repos/github/linguist/pulls/comments/22423027","id":22423027,"diff_hunk":"@@ -139,7 +139,7 @@ def load_grammar(path)\n   case File.extname(path.downcase)\n   when '.plist', '.tmlanguage'\n     Plist::parse_xml(path)\n-  when '.cson'\n+  when '.cson', '.json'\n     cson = `\"#{CSONC}\" \"#{path}\"`","path":"script/download-grammars","position":15,"original_position":15,"commit_id":"f7fce75f3a3cfab63965ff1f7a2c0ee28b6af241","original_commit_id":"f7fce75f3a3cfab63965ff1f7a2c0ee28b6af241","user":{"login":"aroben","id":917945,"avatar_url":"https://avatars.githubusercontent.com/u/917945?v=3","gravatar_id":"","url":"https://api.github.com/users/aroben","html_url":"https://github.com/aroben","followers_url":"https://api.github.com/users/aroben/followers","following_url":"https://api.github.com/users/aroben/following{/other_user}","gists_url":"https://api.github.com/users/aroben/gists{/gist_id}","starred_url":"https://api.github.com/users/aroben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aroben/subscriptions","organizations_url":"https://api.github.com/users/aroben/orgs","repos_url":"https://api.github.com/users/aroben/repos","events_url":"https://api.github.com/users/aroben/events{/privacy}","received_events_url":"https://api.github.com/users/aroben/received_events","type":"User","site_admin":true},"body":"There's no need to pass `.json` files through `csonc`. It would be slightly nicer to just go directly to `JSON.parse` in this case.","created_at":"2015-01-02T21:12:27Z","updated_at":"2015-01-02T21:12:27Z","html_url":"https://github.com/github/linguist/pull/1938#discussion_r22423027","pull_request_url":"https://api.github.com/repos/github/linguist/pulls/1938","_links":{"self":{"href":"https://api.github.com/repos/github/linguist/pulls/comments/22423027"},"html":{"href":"https://github.com/github/linguist/pull/1938#discussion_r22423027"},"pull_request":{"href":"https://api.github.com/repos/github/linguist/pulls/1938"}}},"pull_request":{"url":"https://api.github.com/repos/github/linguist/pulls/1938","id":26757444,"html_url":"https://github.com/github/linguist/pull/1938","diff_url":"https://github.com/github/linguist/pull/1938.diff","patch_url":"https://github.com/github/linguist/pull/1938.patch","issue_url":"https://api.github.com/repos/github/linguist/issues/1938","number":1938,"state":"open","locked":false,"title":"Add grammar for CartoCSS","user":{"login":"floscher","id":3904348,"avatar_url":"https://avatars.githubusercontent.com/u/3904348?v=3","gravatar_id":"","url":"https://api.github.com/users/floscher","html_url":"https://github.com/floscher","followers_url":"https://api.github.com/users/floscher/followers","following_url":"https://api.github.com/users/floscher/following{/other_user}","gists_url":"https://api.github.com/users/floscher/gists{/gist_id}","starred_url":"https://api.github.com/users/floscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floscher/subscriptions","organizations_url":"https://api.github.com/users/floscher/orgs","repos_url":"https://api.github.com/users/floscher/repos","events_url":"https://api.github.com/users/floscher/events{/privacy}","received_events_url":"https://api.github.com/users/floscher/received_events","type":"User","site_admin":false},"body":"This pull request has to wait, until yohanboniface/carto-atom#1 is resolved. But I'm optimistic, that the owner will choose a suitable license. He [has noted in the package.json](https://github.com/yohanboniface/carto-atom/blob/master/package.json#L5) that he intended to release it under WTFPL.\r\n\r\nIn order to get this work, I had to change the `download-grammars`-script to accept files that end with `.json` instead of `.cson`.","created_at":"2015-01-02T13:40:30Z","updated_at":"2015-01-02T21:12:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e60c0b2af750fcab9b1bca874a8414836ca4bfe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/github/linguist/pulls/1938/commits","review_comments_url":"https://api.github.com/repos/github/linguist/pulls/1938/comments","review_comment_url":"https://api.github.com/repos/github/linguist/pulls/comments/{number}","comments_url":"https://api.github.com/repos/github/linguist/issues/1938/comments","statuses_url":"https://api.github.com/repos/github/linguist/statuses/f7fce75f3a3cfab63965ff1f7a2c0ee28b6af241","head":{"label":"floscher:carto-grammar","ref":"carto-grammar","sha":"f7fce75f3a3cfab63965ff1f7a2c0ee28b6af241","user":{"login":"floscher","id":3904348,"avatar_url":"https://avatars.githubusercontent.com/u/3904348?v=3","gravatar_id":"","url":"https://api.github.com/users/floscher","html_url":"https://github.com/floscher","followers_url":"https://api.github.com/users/floscher/followers","following_url":"https://api.github.com/users/floscher/following{/other_user}","gists_url":"https://api.github.com/users/floscher/gists{/gist_id}","starred_url":"https://api.github.com/users/floscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floscher/subscriptions","organizations_url":"https://api.github.com/users/floscher/orgs","repos_url":"https://api.github.com/users/floscher/repos","events_url":"https://api.github.com/users/floscher/events{/privacy}","received_events_url":"https://api.github.com/users/floscher/received_events","type":"User","site_admin":false},"repo":{"id":28688327,"name":"linguist","full_name":"floscher/linguist","owner":{"login":"floscher","id":3904348,"avatar_url":"https://avatars.githubusercontent.com/u/3904348?v=3","gravatar_id":"","url":"https://api.github.com/users/floscher","html_url":"https://github.com/floscher","followers_url":"https://api.github.com/users/floscher/followers","following_url":"https://api.github.com/users/floscher/following{/other_user}","gists_url":"https://api.github.com/users/floscher/gists{/gist_id}","starred_url":"https://api.github.com/users/floscher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floscher/subscriptions","organizations_url":"https://api.github.com/users/floscher/orgs","repos_url":"https://api.github.com/users/floscher/repos","events_url":"https://api.github.com/users/floscher/events{/privacy}","received_events_url":"https://api.github.com/users/floscher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/floscher/linguist","description":"Language Savant. If your repository's language is being reported incorrectly, send us a pull request!","fork":true,"url":"https://api.github.com/repos/floscher/linguist","forks_url":"https://api.github.com/repos/floscher/linguist/forks","keys_url":"https://api.github.com/repos/floscher/linguist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/floscher/linguist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/floscher/linguist/teams","hooks_url":"https://api.github.com/repos/floscher/linguist/hooks","issue_events_url":"https://api.github.com/repos/floscher/linguist/issues/events{/number}","events_url":"https://api.github.com/repos/floscher/linguist/events","assignees_url":"https://api.github.com/repos/floscher/linguist/assignees{/user}","branches_url":"https://api.github.com/repos/floscher/linguist/branches{/branch}","tags_url":"https://api.github.com/repos/floscher/linguist/tags","blobs_url":"https://api.github.com/repos/floscher/linguist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/floscher/linguist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/floscher/linguist/git/refs{/sha}","trees_url":"https://api.github.com/repos/floscher/linguist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/floscher/linguist/statuses/{sha}","languages_url":"https://api.github.com/repos/floscher/linguist/languages","stargazers_url":"https://api.github.com/repos/floscher/linguist/stargazers","contributors_url":"https://api.github.com/repos/floscher/linguist/contributors","subscribers_url":"https://api.github.com/repos/floscher/linguist/subscribers","subscription_url":"https://api.github.com/repos/floscher/linguist/subscription","commits_url":"https://api.github.com/repos/floscher/linguist/commits{/sha}","git_commits_url":"https://api.github.com/repos/floscher/linguist/git/commits{/sha}","comments_url":"https://api.github.com/repos/floscher/linguist/comments{/number}","issue_comment_url":"https://api.github.com/repos/floscher/linguist/issues/comments/{number}","contents_url":"https://api.github.com/repos/floscher/linguist/contents/{+path}","compare_url":"https://api.github.com/repos/floscher/linguist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/floscher/linguist/merges","archive_url":"https://api.github.com/repos/floscher/linguist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/floscher/linguist/downloads","issues_url":"https://api.github.com/repos/floscher/linguist/issues{/number}","pulls_url":"https://api.github.com/repos/floscher/linguist/pulls{/number}","milestones_url":"https://api.github.com/repos/floscher/linguist/milestones{/number}","notifications_url":"https://api.github.com/repos/floscher/linguist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/floscher/linguist/labels{/name}","releases_url":"https://api.github.com/repos/floscher/linguist/releases{/id}","created_at":"2015-01-01T14:43:56Z","updated_at":"2015-01-01T16:15:37Z","pushed_at":"2015-01-02T13:28:00Z","git_url":"git://github.com/floscher/linguist.git","ssh_url":"git@github.com:floscher/linguist.git","clone_url":"https://github.com/floscher/linguist.git","svn_url":"https://github.com/floscher/linguist","homepage":"","size":27993,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"patch-1"}},"base":{"label":"github:master","ref":"master","sha":"c783acc973c37542e036c0300792e9adad0bcd1f","user":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":1725199,"name":"linguist","full_name":"github/linguist","owner":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/linguist","description":"Language Savant. If your repository's language is being reported incorrectly, send us a pull request!","fork":false,"url":"https://api.github.com/repos/github/linguist","forks_url":"https://api.github.com/repos/github/linguist/forks","keys_url":"https://api.github.com/repos/github/linguist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/linguist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/linguist/teams","hooks_url":"https://api.github.com/repos/github/linguist/hooks","issue_events_url":"https://api.github.com/repos/github/linguist/issues/events{/number}","events_url":"https://api.github.com/repos/github/linguist/events","assignees_url":"https://api.github.com/repos/github/linguist/assignees{/user}","branches_url":"https://api.github.com/repos/github/linguist/branches{/branch}","tags_url":"https://api.github.com/repos/github/linguist/tags","blobs_url":"https://api.github.com/repos/github/linguist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/linguist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/linguist/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/linguist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/linguist/statuses/{sha}","languages_url":"https://api.github.com/repos/github/linguist/languages","stargazers_url":"https://api.github.com/repos/github/linguist/stargazers","contributors_url":"https://api.github.com/repos/github/linguist/contributors","subscribers_url":"https://api.github.com/repos/github/linguist/subscribers","subscription_url":"https://api.github.com/repos/github/linguist/subscription","commits_url":"https://api.github.com/repos/github/linguist/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/linguist/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/linguist/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/linguist/issues/comments/{number}","contents_url":"https://api.github.com/repos/github/linguist/contents/{+path}","compare_url":"https://api.github.com/repos/github/linguist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/linguist/merges","archive_url":"https://api.github.com/repos/github/linguist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/linguist/downloads","issues_url":"https://api.github.com/repos/github/linguist/issues{/number}","pulls_url":"https://api.github.com/repos/github/linguist/pulls{/number}","milestones_url":"https://api.github.com/repos/github/linguist/milestones{/number}","notifications_url":"https://api.github.com/repos/github/linguist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/linguist/labels{/name}","releases_url":"https://api.github.com/repos/github/linguist/releases{/id}","created_at":"2011-05-09T22:53:13Z","updated_at":"2015-01-02T19:31:52Z","pushed_at":"2015-01-02T17:10:46Z","git_url":"git://github.com/github/linguist.git","ssh_url":"git@github.com:github/linguist.git","clone_url":"https://github.com/github/linguist.git","svn_url":"https://github.com/github/linguist","homepage":"","size":43801,"stargazers_count":2529,"watchers_count":2529,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1055,"mirror_url":null,"open_issues_count":93,"forks":1055,"open_issues":93,"watchers":2529,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/linguist/pulls/1938"},"html":{"href":"https://github.com/github/linguist/pull/1938"},"issue":{"href":"https://api.github.com/repos/github/linguist/issues/1938"},"comments":{"href":"https://api.github.com/repos/github/linguist/issues/1938/comments"},"review_comments":{"href":"https://api.github.com/repos/github/linguist/pulls/1938/comments"},"review_comment":{"href":"https://api.github.com/repos/github/linguist/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/github/linguist/pulls/1938/commits"},"statuses":{"href":"https://api.github.com/repos/github/linguist/statuses/f7fce75f3a3cfab63965ff1f7a2c0ee28b6af241"}}}}