{"action":"created","comment":{"url":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/comments/60171649","id":60171649,"diff_hunk":"@@ -325,6 +328,57 @@ label.\"\n     (nreverse index)))\n \n \f\n+;;; Embedded language syntax-highlighting\n+\n+(defun snakemake-mode-setup-mmm ()\n+  \"Set up MMM mode to highlight embedded R code.\n+\n+You must have the R-strings either within a R(''' ''') function call or a code\n+block delimited with '''#r and ''' (triple double-quotes also accepted).\n+\n+For automatic highlighting of embedded regions, you need to set mmm-global-mode\n+to 'maybe in your setup file.\"\n+\n+  (progn","path":"snakemake-mode.el","position":25,"original_position":25,"commit_id":"c816475c6d1ab708d0a433f98578086739c8ac8f","original_commit_id":"c816475c6d1ab708d0a433f98578086739c8ac8f","user":{"login":"kyleam","id":1297788,"avatar_url":"https://avatars.githubusercontent.com/u/1297788?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleam","html_url":"https://github.com/kyleam","followers_url":"https://api.github.com/users/kyleam/followers","following_url":"https://api.github.com/users/kyleam/following{/other_user}","gists_url":"https://api.github.com/users/kyleam/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleam/subscriptions","organizations_url":"https://api.github.com/users/kyleam/orgs","repos_url":"https://api.github.com/users/kyleam/repos","events_url":"https://api.github.com/users/kyleam/events{/privacy}","received_events_url":"https://api.github.com/users/kyleam/received_events","type":"User","site_admin":false},"body":" This `progn` isn't needed.","created_at":"2016-04-19T04:25:03Z","updated_at":"2016-04-19T04:25:03Z","html_url":"https://github.com/kyleam/snakemake-mode/pull/13#discussion_r60171649","pull_request_url":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/comments/60171649"},"html":{"href":"https://github.com/kyleam/snakemake-mode/pull/13#discussion_r60171649"},"pull_request":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13","id":66893816,"html_url":"https://github.com/kyleam/snakemake-mode/pull/13","diff_url":"https://github.com/kyleam/snakemake-mode/pull/13.diff","patch_url":"https://github.com/kyleam/snakemake-mode/pull/13.patch","issue_url":"https://api.github.com/repos/kyleam/snakemake-mode/issues/13","number":13,"state":"open","locked":false,"title":"Syntax-highlight embedded R code","user":{"login":"endrebak","id":17778898,"avatar_url":"https://avatars.githubusercontent.com/u/17778898?v=3","gravatar_id":"","url":"https://api.github.com/users/endrebak","html_url":"https://github.com/endrebak","followers_url":"https://api.github.com/users/endrebak/followers","following_url":"https://api.github.com/users/endrebak/following{/other_user}","gists_url":"https://api.github.com/users/endrebak/gists{/gist_id}","starred_url":"https://api.github.com/users/endrebak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endrebak/subscriptions","organizations_url":"https://api.github.com/users/endrebak/orgs","repos_url":"https://api.github.com/users/endrebak/repos","events_url":"https://api.github.com/users/endrebak/events{/privacy}","received_events_url":"https://api.github.com/users/endrebak/received_events","type":"User","site_admin":false},"body":"I did not add `R` to the `snakemake-mode-setup-mmm` function name. In the future, if support for several embedded languages are added, we can keep the name, but start taking args such as `'sql`, `'R` etc. to only setup for certain languages.\r\n\r\nMax-width is 79 chars.\r\n\r\nFixed the regex.\r\n\r\nKept the `;;;; Emedded language...` header to help newcomers understand the code.\r\n","created_at":"2016-04-18T17:49:19Z","updated_at":"2016-04-19T04:25:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27be6adf372151d582d3fddc953d41a4a83e1eff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13/commits","review_comments_url":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13/comments","review_comment_url":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kyleam/snakemake-mode/issues/13/comments","statuses_url":"https://api.github.com/repos/kyleam/snakemake-mode/statuses/c816475c6d1ab708d0a433f98578086739c8ac8f","head":{"label":"endrebak:highlight-R","ref":"highlight-R","sha":"c816475c6d1ab708d0a433f98578086739c8ac8f","user":{"login":"endrebak","id":17778898,"avatar_url":"https://avatars.githubusercontent.com/u/17778898?v=3","gravatar_id":"","url":"https://api.github.com/users/endrebak","html_url":"https://github.com/endrebak","followers_url":"https://api.github.com/users/endrebak/followers","following_url":"https://api.github.com/users/endrebak/following{/other_user}","gists_url":"https://api.github.com/users/endrebak/gists{/gist_id}","starred_url":"https://api.github.com/users/endrebak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endrebak/subscriptions","organizations_url":"https://api.github.com/users/endrebak/orgs","repos_url":"https://api.github.com/users/endrebak/repos","events_url":"https://api.github.com/users/endrebak/events{/privacy}","received_events_url":"https://api.github.com/users/endrebak/received_events","type":"User","site_admin":false},"repo":{"id":56448749,"name":"snakemake-mode","full_name":"endrebak/snakemake-mode","owner":{"login":"endrebak","id":17778898,"avatar_url":"https://avatars.githubusercontent.com/u/17778898?v=3","gravatar_id":"","url":"https://api.github.com/users/endrebak","html_url":"https://github.com/endrebak","followers_url":"https://api.github.com/users/endrebak/followers","following_url":"https://api.github.com/users/endrebak/following{/other_user}","gists_url":"https://api.github.com/users/endrebak/gists{/gist_id}","starred_url":"https://api.github.com/users/endrebak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endrebak/subscriptions","organizations_url":"https://api.github.com/users/endrebak/orgs","repos_url":"https://api.github.com/users/endrebak/repos","events_url":"https://api.github.com/users/endrebak/events{/privacy}","received_events_url":"https://api.github.com/users/endrebak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/endrebak/snakemake-mode","description":"Emacs support for Snakemake","fork":true,"url":"https://api.github.com/repos/endrebak/snakemake-mode","forks_url":"https://api.github.com/repos/endrebak/snakemake-mode/forks","keys_url":"https://api.github.com/repos/endrebak/snakemake-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endrebak/snakemake-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endrebak/snakemake-mode/teams","hooks_url":"https://api.github.com/repos/endrebak/snakemake-mode/hooks","issue_events_url":"https://api.github.com/repos/endrebak/snakemake-mode/issues/events{/number}","events_url":"https://api.github.com/repos/endrebak/snakemake-mode/events","assignees_url":"https://api.github.com/repos/endrebak/snakemake-mode/assignees{/user}","branches_url":"https://api.github.com/repos/endrebak/snakemake-mode/branches{/branch}","tags_url":"https://api.github.com/repos/endrebak/snakemake-mode/tags","blobs_url":"https://api.github.com/repos/endrebak/snakemake-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endrebak/snakemake-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endrebak/snakemake-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/endrebak/snakemake-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endrebak/snakemake-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/endrebak/snakemake-mode/languages","stargazers_url":"https://api.github.com/repos/endrebak/snakemake-mode/stargazers","contributors_url":"https://api.github.com/repos/endrebak/snakemake-mode/contributors","subscribers_url":"https://api.github.com/repos/endrebak/snakemake-mode/subscribers","subscription_url":"https://api.github.com/repos/endrebak/snakemake-mode/subscription","commits_url":"https://api.github.com/repos/endrebak/snakemake-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/endrebak/snakemake-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/endrebak/snakemake-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/endrebak/snakemake-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/endrebak/snakemake-mode/contents/{+path}","compare_url":"https://api.github.com/repos/endrebak/snakemake-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endrebak/snakemake-mode/merges","archive_url":"https://api.github.com/repos/endrebak/snakemake-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endrebak/snakemake-mode/downloads","issues_url":"https://api.github.com/repos/endrebak/snakemake-mode/issues{/number}","pulls_url":"https://api.github.com/repos/endrebak/snakemake-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/endrebak/snakemake-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/endrebak/snakemake-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endrebak/snakemake-mode/labels{/name}","releases_url":"https://api.github.com/repos/endrebak/snakemake-mode/releases{/id}","deployments_url":"https://api.github.com/repos/endrebak/snakemake-mode/deployments","created_at":"2016-04-17T17:16:04Z","updated_at":"2016-04-17T17:16:05Z","pushed_at":"2016-04-18T17:26:16Z","git_url":"git://github.com/endrebak/snakemake-mode.git","ssh_url":"git@github.com:endrebak/snakemake-mode.git","clone_url":"https://github.com/endrebak/snakemake-mode.git","svn_url":"https://github.com/endrebak/snakemake-mode","homepage":"","size":106,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","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":"kyleam:master","ref":"master","sha":"27c19be6fec7b198f5e41c20c914f34183917ffb","user":{"login":"kyleam","id":1297788,"avatar_url":"https://avatars.githubusercontent.com/u/1297788?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleam","html_url":"https://github.com/kyleam","followers_url":"https://api.github.com/users/kyleam/followers","following_url":"https://api.github.com/users/kyleam/following{/other_user}","gists_url":"https://api.github.com/users/kyleam/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleam/subscriptions","organizations_url":"https://api.github.com/users/kyleam/orgs","repos_url":"https://api.github.com/users/kyleam/repos","events_url":"https://api.github.com/users/kyleam/events{/privacy}","received_events_url":"https://api.github.com/users/kyleam/received_events","type":"User","site_admin":false},"repo":{"id":21295716,"name":"snakemake-mode","full_name":"kyleam/snakemake-mode","owner":{"login":"kyleam","id":1297788,"avatar_url":"https://avatars.githubusercontent.com/u/1297788?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleam","html_url":"https://github.com/kyleam","followers_url":"https://api.github.com/users/kyleam/followers","following_url":"https://api.github.com/users/kyleam/following{/other_user}","gists_url":"https://api.github.com/users/kyleam/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleam/subscriptions","organizations_url":"https://api.github.com/users/kyleam/orgs","repos_url":"https://api.github.com/users/kyleam/repos","events_url":"https://api.github.com/users/kyleam/events{/privacy}","received_events_url":"https://api.github.com/users/kyleam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyleam/snakemake-mode","description":"Emacs support for Snakemake","fork":false,"url":"https://api.github.com/repos/kyleam/snakemake-mode","forks_url":"https://api.github.com/repos/kyleam/snakemake-mode/forks","keys_url":"https://api.github.com/repos/kyleam/snakemake-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyleam/snakemake-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyleam/snakemake-mode/teams","hooks_url":"https://api.github.com/repos/kyleam/snakemake-mode/hooks","issue_events_url":"https://api.github.com/repos/kyleam/snakemake-mode/issues/events{/number}","events_url":"https://api.github.com/repos/kyleam/snakemake-mode/events","assignees_url":"https://api.github.com/repos/kyleam/snakemake-mode/assignees{/user}","branches_url":"https://api.github.com/repos/kyleam/snakemake-mode/branches{/branch}","tags_url":"https://api.github.com/repos/kyleam/snakemake-mode/tags","blobs_url":"https://api.github.com/repos/kyleam/snakemake-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyleam/snakemake-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyleam/snakemake-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyleam/snakemake-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyleam/snakemake-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/kyleam/snakemake-mode/languages","stargazers_url":"https://api.github.com/repos/kyleam/snakemake-mode/stargazers","contributors_url":"https://api.github.com/repos/kyleam/snakemake-mode/contributors","subscribers_url":"https://api.github.com/repos/kyleam/snakemake-mode/subscribers","subscription_url":"https://api.github.com/repos/kyleam/snakemake-mode/subscription","commits_url":"https://api.github.com/repos/kyleam/snakemake-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyleam/snakemake-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyleam/snakemake-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyleam/snakemake-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyleam/snakemake-mode/contents/{+path}","compare_url":"https://api.github.com/repos/kyleam/snakemake-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyleam/snakemake-mode/merges","archive_url":"https://api.github.com/repos/kyleam/snakemake-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyleam/snakemake-mode/downloads","issues_url":"https://api.github.com/repos/kyleam/snakemake-mode/issues{/number}","pulls_url":"https://api.github.com/repos/kyleam/snakemake-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/kyleam/snakemake-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/kyleam/snakemake-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyleam/snakemake-mode/labels{/name}","releases_url":"https://api.github.com/repos/kyleam/snakemake-mode/releases{/id}","deployments_url":"https://api.github.com/repos/kyleam/snakemake-mode/deployments","created_at":"2014-06-28T04:04:41Z","updated_at":"2016-03-09T08:50:54Z","pushed_at":"2016-04-18T17:49:19Z","git_url":"git://github.com/kyleam/snakemake-mode.git","ssh_url":"git@github.com:kyleam/snakemake-mode.git","clone_url":"https://github.com/kyleam/snakemake-mode.git","svn_url":"https://github.com/kyleam/snakemake-mode","homepage":"","size":116,"stargazers_count":4,"watchers_count":4,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13"},"html":{"href":"https://github.com/kyleam/snakemake-mode/pull/13"},"issue":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/issues/13"},"comments":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/kyleam/snakemake-mode/statuses/c816475c6d1ab708d0a433f98578086739c8ac8f"}}}}