{"action":"opened","number":175,"pull_request":{"url":"https://api.github.com/repos/atom/language-gfm/pulls/175","id":90986145,"html_url":"https://github.com/atom/language-gfm/pull/175","diff_url":"https://github.com/atom/language-gfm/pull/175.diff","patch_url":"https://github.com/atom/language-gfm/pull/175.patch","issue_url":"https://api.github.com/repos/atom/language-gfm/issues/175","number":175,"state":"open","locked":false,"title":"Add scope for code-blocks with unrecognised languages","user":{"login":"Alhadis","id":2346707,"avatar_url":"https://avatars.githubusercontent.com/u/2346707?v=3","gravatar_id":"","url":"https://api.github.com/users/Alhadis","html_url":"https://github.com/Alhadis","followers_url":"https://api.github.com/users/Alhadis/followers","following_url":"https://api.github.com/users/Alhadis/following{/other_user}","gists_url":"https://api.github.com/users/Alhadis/gists{/gist_id}","starred_url":"https://api.github.com/users/Alhadis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alhadis/subscriptions","organizations_url":"https://api.github.com/users/Alhadis/orgs","repos_url":"https://api.github.com/users/Alhadis/repos","events_url":"https://api.github.com/users/Alhadis/events{/privacy}","received_events_url":"https://api.github.com/users/Alhadis/received_events","type":"User","site_admin":false},"body":"This enables third-party grammars to embed themselves into a Markdown document through injections:\r\n\r\n<img src=\"https://cloud.githubusercontent.com/assets/2346707/19724342/659f9a5c-9bcb-11e6-8a0d-fabf0d6de5d3.png\" width=\"372\" alt=\"My language's symbols are scarier than yours.\" />\r\n\r\nThis way, all a grammar needs to add to be highlighted in Markdown snippets is to add this line:\r\n\r\n```coffee\r\ninjectionSelector: \"source.embedded.NAME\"\r\n```\r\n\r\n### Notes:\r\n* While doing this, I also stumbled across a bug where any unmarked code-block is incorrectly matched as AsciiDoc. The culprit turned out to be a stray pipe `|` [at the end of the capturing group](https://github.com/atom/language-gfm/blob/master/grammars/gfm.cson#L653), which of course will match anything.\r\n* The [extra pattern](https://github.com/Alhadis/language-gfm/blob/dbb42b8ceee2b35b6cf3364bfb7dec535d2b0565/grammars/gfm.cson#L991-L1000) is necessary  for overcoming a technical limitation. See atom/first-mate#82.","created_at":"2016-10-26T11:33:00Z","updated_at":"2016-10-26T11:33:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/atom/language-gfm/pulls/175/commits","review_comments_url":"https://api.github.com/repos/atom/language-gfm/pulls/175/comments","review_comment_url":"https://api.github.com/repos/atom/language-gfm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/language-gfm/issues/175/comments","statuses_url":"https://api.github.com/repos/atom/language-gfm/statuses/dbb42b8ceee2b35b6cf3364bfb7dec535d2b0565","head":{"label":"Alhadis:anon-scopes","ref":"anon-scopes","sha":"dbb42b8ceee2b35b6cf3364bfb7dec535d2b0565","user":{"login":"Alhadis","id":2346707,"avatar_url":"https://avatars.githubusercontent.com/u/2346707?v=3","gravatar_id":"","url":"https://api.github.com/users/Alhadis","html_url":"https://github.com/Alhadis","followers_url":"https://api.github.com/users/Alhadis/followers","following_url":"https://api.github.com/users/Alhadis/following{/other_user}","gists_url":"https://api.github.com/users/Alhadis/gists{/gist_id}","starred_url":"https://api.github.com/users/Alhadis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alhadis/subscriptions","organizations_url":"https://api.github.com/users/Alhadis/orgs","repos_url":"https://api.github.com/users/Alhadis/repos","events_url":"https://api.github.com/users/Alhadis/events{/privacy}","received_events_url":"https://api.github.com/users/Alhadis/received_events","type":"User","site_admin":false},"repo":{"id":71996372,"name":"language-gfm","full_name":"Alhadis/language-gfm","owner":{"login":"Alhadis","id":2346707,"avatar_url":"https://avatars.githubusercontent.com/u/2346707?v=3","gravatar_id":"","url":"https://api.github.com/users/Alhadis","html_url":"https://github.com/Alhadis","followers_url":"https://api.github.com/users/Alhadis/followers","following_url":"https://api.github.com/users/Alhadis/following{/other_user}","gists_url":"https://api.github.com/users/Alhadis/gists{/gist_id}","starred_url":"https://api.github.com/users/Alhadis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alhadis/subscriptions","organizations_url":"https://api.github.com/users/Alhadis/orgs","repos_url":"https://api.github.com/users/Alhadis/repos","events_url":"https://api.github.com/users/Alhadis/events{/privacy}","received_events_url":"https://api.github.com/users/Alhadis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alhadis/language-gfm","description":"Pull request: https://github.com/atom/language-gfm/pull/175","fork":true,"url":"https://api.github.com/repos/Alhadis/language-gfm","forks_url":"https://api.github.com/repos/Alhadis/language-gfm/forks","keys_url":"https://api.github.com/repos/Alhadis/language-gfm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alhadis/language-gfm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alhadis/language-gfm/teams","hooks_url":"https://api.github.com/repos/Alhadis/language-gfm/hooks","issue_events_url":"https://api.github.com/repos/Alhadis/language-gfm/issues/events{/number}","events_url":"https://api.github.com/repos/Alhadis/language-gfm/events","assignees_url":"https://api.github.com/repos/Alhadis/language-gfm/assignees{/user}","branches_url":"https://api.github.com/repos/Alhadis/language-gfm/branches{/branch}","tags_url":"https://api.github.com/repos/Alhadis/language-gfm/tags","blobs_url":"https://api.github.com/repos/Alhadis/language-gfm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alhadis/language-gfm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alhadis/language-gfm/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alhadis/language-gfm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alhadis/language-gfm/statuses/{sha}","languages_url":"https://api.github.com/repos/Alhadis/language-gfm/languages","stargazers_url":"https://api.github.com/repos/Alhadis/language-gfm/stargazers","contributors_url":"https://api.github.com/repos/Alhadis/language-gfm/contributors","subscribers_url":"https://api.github.com/repos/Alhadis/language-gfm/subscribers","subscription_url":"https://api.github.com/repos/Alhadis/language-gfm/subscription","commits_url":"https://api.github.com/repos/Alhadis/language-gfm/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alhadis/language-gfm/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alhadis/language-gfm/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alhadis/language-gfm/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alhadis/language-gfm/contents/{+path}","compare_url":"https://api.github.com/repos/Alhadis/language-gfm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alhadis/language-gfm/merges","archive_url":"https://api.github.com/repos/Alhadis/language-gfm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alhadis/language-gfm/downloads","issues_url":"https://api.github.com/repos/Alhadis/language-gfm/issues{/number}","pulls_url":"https://api.github.com/repos/Alhadis/language-gfm/pulls{/number}","milestones_url":"https://api.github.com/repos/Alhadis/language-gfm/milestones{/number}","notifications_url":"https://api.github.com/repos/Alhadis/language-gfm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alhadis/language-gfm/labels{/name}","releases_url":"https://api.github.com/repos/Alhadis/language-gfm/releases{/id}","deployments_url":"https://api.github.com/repos/Alhadis/language-gfm/deployments","created_at":"2016-10-26T11:25:34Z","updated_at":"2016-10-26T11:26:48Z","pushed_at":"2016-10-26T11:25:58Z","git_url":"git://github.com/Alhadis/language-gfm.git","ssh_url":"git@github.com:Alhadis/language-gfm.git","clone_url":"https://github.com/Alhadis/language-gfm.git","svn_url":"https://github.com/Alhadis/language-gfm","homepage":"","size":325,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"atom:master","ref":"master","sha":"17b24ee54e4a7818c2d656541acc26ece305ef95","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":12073280,"name":"language-gfm","full_name":"atom/language-gfm","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/language-gfm","description":"GitHub Flavored Markdown in Atom","fork":false,"url":"https://api.github.com/repos/atom/language-gfm","forks_url":"https://api.github.com/repos/atom/language-gfm/forks","keys_url":"https://api.github.com/repos/atom/language-gfm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/language-gfm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/language-gfm/teams","hooks_url":"https://api.github.com/repos/atom/language-gfm/hooks","issue_events_url":"https://api.github.com/repos/atom/language-gfm/issues/events{/number}","events_url":"https://api.github.com/repos/atom/language-gfm/events","assignees_url":"https://api.github.com/repos/atom/language-gfm/assignees{/user}","branches_url":"https://api.github.com/repos/atom/language-gfm/branches{/branch}","tags_url":"https://api.github.com/repos/atom/language-gfm/tags","blobs_url":"https://api.github.com/repos/atom/language-gfm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/language-gfm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/language-gfm/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/language-gfm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/language-gfm/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/language-gfm/languages","stargazers_url":"https://api.github.com/repos/atom/language-gfm/stargazers","contributors_url":"https://api.github.com/repos/atom/language-gfm/contributors","subscribers_url":"https://api.github.com/repos/atom/language-gfm/subscribers","subscription_url":"https://api.github.com/repos/atom/language-gfm/subscription","commits_url":"https://api.github.com/repos/atom/language-gfm/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/language-gfm/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/language-gfm/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/language-gfm/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/language-gfm/contents/{+path}","compare_url":"https://api.github.com/repos/atom/language-gfm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/language-gfm/merges","archive_url":"https://api.github.com/repos/atom/language-gfm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/language-gfm/downloads","issues_url":"https://api.github.com/repos/atom/language-gfm/issues{/number}","pulls_url":"https://api.github.com/repos/atom/language-gfm/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/language-gfm/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/language-gfm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/language-gfm/labels{/name}","releases_url":"https://api.github.com/repos/atom/language-gfm/releases{/id}","deployments_url":"https://api.github.com/repos/atom/language-gfm/deployments","created_at":"2013-08-13T04:32:55Z","updated_at":"2016-10-07T07:06:53Z","pushed_at":"2016-10-26T11:33:00Z","git_url":"git://github.com/atom/language-gfm.git","ssh_url":"git@github.com:atom/language-gfm.git","clone_url":"https://github.com/atom/language-gfm.git","svn_url":"https://github.com/atom/language-gfm","homepage":null,"size":325,"stargazers_count":64,"watchers_count":64,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":51,"forks":77,"open_issues":51,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/language-gfm/pulls/175"},"html":{"href":"https://github.com/atom/language-gfm/pull/175"},"issue":{"href":"https://api.github.com/repos/atom/language-gfm/issues/175"},"comments":{"href":"https://api.github.com/repos/atom/language-gfm/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/language-gfm/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/language-gfm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/language-gfm/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/atom/language-gfm/statuses/dbb42b8ceee2b35b6cf3364bfb7dec535d2b0565"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":42,"deletions":10,"changed_files":2}}
{"actor":{"display_login":"Alhadis"}}