{"action":"created","comment":{"url":"https://api.github.com/repos/PrismJS/prism/pulls/comments/171723330","pull_request_review_id":100625066,"id":171723330,"diff_hunk":"@@ -0,0 +1,192 @@\n+// Functions to construct regular expressions\n+// simple form\n+// e.g. (interactive ... or (interactive)\n+function simple_form(name) {\n+\treturn new RegExp(\"(\\\\()\" + name + \"(?=[\\\\s\\\\)])\")\n+}\n+// booleans and numbers\n+function primitive(pattern) {\n+\treturn new RegExp(\"([\\\\s([])\" + pattern + \"(?=[\\\\s)])\")\n+}\n+\n+// Patterns in regular expressions\n+\n+// Symbol name. See https://www.gnu.org/software/emacs/manual/html_node/elisp/Symbol-Type.html\n+// & and : are excluded as they are usually used for special purposes\n+var symbol = \"[-+*/_~!@$%^=<>{}\\\\w]+\"\n+// symbol starting with & used in function arguments\n+var marker = \"&\" + symbol\n+// Open parenthesis for look-behind\n+var par = \"(\\\\()\"\n+var endpar = \"(?=\\\\))\"\n+// End the pattern with look-ahead space\n+var space = \"(?=\\\\s)\"\n+\n+var language = {\n+\t// Three or four semicolons are considered a heading.\n+\t// See https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html\n+\theading: {\n+\t\tpattern: /;;;.*/,\n+\t\talias: [\"comment\", \"title\"],\n+\t},\n+\tcomment: /;.*/,\n+\tstring: {\n+\t\tpattern: /\"(?:[^\"\\\\]*|\\\\.)*\"/,\n+\t\tgreedy: true,\n+\t\tinside: {\n+\t\t\targument: /[-A-Z]+(?=[.,\\s])/,\n+\t\t\tsymbol: new RegExp(\"`\" + symbol + \"'\"),\n+\t\t},\n+\t},\n+\t\"quoted-symbol\": {\n+\t\tpattern: new RegExp(\"#?'\" + symbol),\n+\t\talias: [\"variable\", \"symbol\"],\n+\t},\n+\t\"lisp-property\": {\n+\t\tpattern: new RegExp(\":\" + symbol),\n+\t\talias: \"property\",\n+\t},\n+\tsplice: {\n+\t\tpattern: new RegExp(\",@?\" + symbol),\n+\t\talias: [\"symbol\", \"variable\"],\n+\t},\n+\tkeyword: [\n+\t\t{\n+\t\t\tpattern: new RegExp(\n+\t\t\t\tpar +\n+\t\t\t\t\t\"(?:(?:lexical-)?let\\\\*?|(?:cl-)?letf|if|when|while|unless|cons|cl-loop|and|or|not|cond|setq|error|message|null|require|provide|use-package)\" +\n+\t\t\t\t\tspace\n+\t\t\t),\n+\t\t\tlookbehind: true,\n+\t\t},\n+\t\t{\n+\t\t\tpattern: new RegExp(\n+\t\t\t\tpar + \"(?:for|do|collect|return|finally|append|concat|in|by)\" + space\n+\t\t\t),\n+\t\t\tlookbehind: true,\n+\t\t},\n+\t],\n+\tdeclare: {\n+\t\tpattern: simple_form(\"declare\"),\n+\t\tlookbehind: true,\n+\t\talias: \"keyword\",\n+\t},\n+\tinteractive: {\n+\t\tpattern: simple_form(\"interactive\"),\n+\t\tlookbehind: true,\n+\t\talias: \"keyword\",\n+\t},\n+\tboolean: {\n+\t\tpattern: primitive(\"(?:t|nil)\"),\n+\t\tlookbehind: true,\n+\t},\n+\tnumber: {\n+\t\tpattern: primitive(\"[-+]?\\\\d+(?:\\\\.\\\\d*)?\"),\n+\t\tlookbehind: true,\n+\t},\n+\tdefvar: {\n+\t\tpattern: new RegExp(par + \"def(?:var|const|custom|group)\\\\s+\" + symbol),\n+\t\tlookbehind: true,\n+\t\tinside: {\n+\t\t\tkeyword: /^def[a-z]+/,\n+\t\t\tvariable: new RegExp(symbol),\n+\t\t},\n+\t},\n+\tdefun: {\n+\t\tpattern: new RegExp(\n+\t\t\tpar +\n+\t\t\t\t\"(?:cl-)?(?:defun\\\\*?|defmacro)\\\\s+\" +\n+\t\t\t\tsymbol +\n+\t\t\t\t\"\\\\s+\\\\([\\\\s\\\\S]*?\\\\)\"\n+\t\t),\n+\t\tlookbehind: true,\n+\t\tinside: {\n+\t\t\tkeyword: /^(?:cl-)?def\\S+/,\n+\t\t\targuments: null,","path":"components/prism-elisp.js","position":105,"original_position":105,"commit_id":"84369eddb1eb67d6b2a2b75a868733e054936a58","original_commit_id":"84369eddb1eb67d6b2a2b75a868733e054936a58","user":{"login":"Golmote","id":565460,"avatar_url":"https://avatars3.githubusercontent.com/u/565460?v=4","gravatar_id":"","url":"https://api.github.com/users/Golmote","html_url":"https://github.com/Golmote","followers_url":"https://api.github.com/users/Golmote/followers","following_url":"https://api.github.com/users/Golmote/following{/other_user}","gists_url":"https://api.github.com/users/Golmote/gists{/gist_id}","starred_url":"https://api.github.com/users/Golmote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Golmote/subscriptions","organizations_url":"https://api.github.com/users/Golmote/orgs","repos_url":"https://api.github.com/users/Golmote/repos","events_url":"https://api.github.com/users/Golmote/events{/privacy}","received_events_url":"https://api.github.com/users/Golmote/received_events","type":"User","site_admin":false},"body":"Could you add a comment here, something like `// See below` so that it's obvious this will be filled later on.","created_at":"2018-03-01T23:09:34Z","updated_at":"2018-03-01T23:20:48Z","html_url":"https://github.com/PrismJS/prism/pull/1297#discussion_r171723330","pull_request_url":"https://api.github.com/repos/PrismJS/prism/pulls/1297","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/comments/171723330"},"html":{"href":"https://github.com/PrismJS/prism/pull/1297#discussion_r171723330"},"pull_request":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1297"}}},"pull_request":{"url":"https://api.github.com/repos/PrismJS/prism/pulls/1297","id":169551419,"html_url":"https://github.com/PrismJS/prism/pull/1297","diff_url":"https://github.com/PrismJS/prism/pull/1297.diff","patch_url":"https://github.com/PrismJS/prism/pull/1297.patch","issue_url":"https://api.github.com/repos/PrismJS/prism/issues/1297","number":1297,"state":"open","locked":false,"title":"add emacs","user":{"login":"JuanCaicedo","id":4341496,"avatar_url":"https://avatars3.githubusercontent.com/u/4341496?v=4","gravatar_id":"","url":"https://api.github.com/users/JuanCaicedo","html_url":"https://github.com/JuanCaicedo","followers_url":"https://api.github.com/users/JuanCaicedo/followers","following_url":"https://api.github.com/users/JuanCaicedo/following{/other_user}","gists_url":"https://api.github.com/users/JuanCaicedo/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCaicedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCaicedo/subscriptions","organizations_url":"https://api.github.com/users/JuanCaicedo/orgs","repos_url":"https://api.github.com/users/JuanCaicedo/repos","events_url":"https://api.github.com/users/JuanCaicedo/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCaicedo/received_events","type":"User","site_admin":false},"body":"This adds the plugin developed by [akirak/prism-emacs-lisp](https://github.com/akirak/prism-emacs-lisp) for the emacs lisp language. The extension is `emacs`. \r\n\r\nI would like to support also `lisp` and `elisp` since both of those names are used, but I'm not sure what would be the best way to do that.\r\n\r\nLet me know if there's anything missing to be able to add this 😀","created_at":"2018-02-16T05:37:18Z","updated_at":"2018-03-01T23:20:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d81df522281913b1b4ba68a1264a959c6bd9f9ab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PrismJS/prism/pulls/1297/commits","review_comments_url":"https://api.github.com/repos/PrismJS/prism/pulls/1297/comments","review_comment_url":"https://api.github.com/repos/PrismJS/prism/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrismJS/prism/issues/1297/comments","statuses_url":"https://api.github.com/repos/PrismJS/prism/statuses/84369eddb1eb67d6b2a2b75a868733e054936a58","head":{"label":"JuanCaicedo:add-emacs","ref":"add-emacs","sha":"84369eddb1eb67d6b2a2b75a868733e054936a58","user":{"login":"JuanCaicedo","id":4341496,"avatar_url":"https://avatars3.githubusercontent.com/u/4341496?v=4","gravatar_id":"","url":"https://api.github.com/users/JuanCaicedo","html_url":"https://github.com/JuanCaicedo","followers_url":"https://api.github.com/users/JuanCaicedo/followers","following_url":"https://api.github.com/users/JuanCaicedo/following{/other_user}","gists_url":"https://api.github.com/users/JuanCaicedo/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCaicedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCaicedo/subscriptions","organizations_url":"https://api.github.com/users/JuanCaicedo/orgs","repos_url":"https://api.github.com/users/JuanCaicedo/repos","events_url":"https://api.github.com/users/JuanCaicedo/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCaicedo/received_events","type":"User","site_admin":false},"repo":{"id":121710027,"name":"prism","full_name":"JuanCaicedo/prism","owner":{"login":"JuanCaicedo","id":4341496,"avatar_url":"https://avatars3.githubusercontent.com/u/4341496?v=4","gravatar_id":"","url":"https://api.github.com/users/JuanCaicedo","html_url":"https://github.com/JuanCaicedo","followers_url":"https://api.github.com/users/JuanCaicedo/followers","following_url":"https://api.github.com/users/JuanCaicedo/following{/other_user}","gists_url":"https://api.github.com/users/JuanCaicedo/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCaicedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCaicedo/subscriptions","organizations_url":"https://api.github.com/users/JuanCaicedo/orgs","repos_url":"https://api.github.com/users/JuanCaicedo/repos","events_url":"https://api.github.com/users/JuanCaicedo/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCaicedo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JuanCaicedo/prism","description":"Lightweight, robust, elegant syntax highlighting.","fork":true,"url":"https://api.github.com/repos/JuanCaicedo/prism","forks_url":"https://api.github.com/repos/JuanCaicedo/prism/forks","keys_url":"https://api.github.com/repos/JuanCaicedo/prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuanCaicedo/prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuanCaicedo/prism/teams","hooks_url":"https://api.github.com/repos/JuanCaicedo/prism/hooks","issue_events_url":"https://api.github.com/repos/JuanCaicedo/prism/issues/events{/number}","events_url":"https://api.github.com/repos/JuanCaicedo/prism/events","assignees_url":"https://api.github.com/repos/JuanCaicedo/prism/assignees{/user}","branches_url":"https://api.github.com/repos/JuanCaicedo/prism/branches{/branch}","tags_url":"https://api.github.com/repos/JuanCaicedo/prism/tags","blobs_url":"https://api.github.com/repos/JuanCaicedo/prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuanCaicedo/prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuanCaicedo/prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuanCaicedo/prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuanCaicedo/prism/statuses/{sha}","languages_url":"https://api.github.com/repos/JuanCaicedo/prism/languages","stargazers_url":"https://api.github.com/repos/JuanCaicedo/prism/stargazers","contributors_url":"https://api.github.com/repos/JuanCaicedo/prism/contributors","subscribers_url":"https://api.github.com/repos/JuanCaicedo/prism/subscribers","subscription_url":"https://api.github.com/repos/JuanCaicedo/prism/subscription","commits_url":"https://api.github.com/repos/JuanCaicedo/prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuanCaicedo/prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuanCaicedo/prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuanCaicedo/prism/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuanCaicedo/prism/contents/{+path}","compare_url":"https://api.github.com/repos/JuanCaicedo/prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuanCaicedo/prism/merges","archive_url":"https://api.github.com/repos/JuanCaicedo/prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuanCaicedo/prism/downloads","issues_url":"https://api.github.com/repos/JuanCaicedo/prism/issues{/number}","pulls_url":"https://api.github.com/repos/JuanCaicedo/prism/pulls{/number}","milestones_url":"https://api.github.com/repos/JuanCaicedo/prism/milestones{/number}","notifications_url":"https://api.github.com/repos/JuanCaicedo/prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuanCaicedo/prism/labels{/name}","releases_url":"https://api.github.com/repos/JuanCaicedo/prism/releases{/id}","deployments_url":"https://api.github.com/repos/JuanCaicedo/prism/deployments","created_at":"2018-02-16T03:07:14Z","updated_at":"2018-02-16T03:07:17Z","pushed_at":"2018-02-27T04:53:31Z","git_url":"git://github.com/JuanCaicedo/prism.git","ssh_url":"git@github.com:JuanCaicedo/prism.git","clone_url":"https://github.com/JuanCaicedo/prism.git","svn_url":"https://github.com/JuanCaicedo/prism","homepage":"http://prismjs.com","size":4533,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"PrismJS:gh-pages","ref":"gh-pages","sha":"7a9dbe05d5f90a80ca57bb877464834e65fdca5a","user":{"login":"PrismJS","id":11140484,"avatar_url":"https://avatars3.githubusercontent.com/u/11140484?v=4","gravatar_id":"","url":"https://api.github.com/users/PrismJS","html_url":"https://github.com/PrismJS","followers_url":"https://api.github.com/users/PrismJS/followers","following_url":"https://api.github.com/users/PrismJS/following{/other_user}","gists_url":"https://api.github.com/users/PrismJS/gists{/gist_id}","starred_url":"https://api.github.com/users/PrismJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrismJS/subscriptions","organizations_url":"https://api.github.com/users/PrismJS/orgs","repos_url":"https://api.github.com/users/PrismJS/repos","events_url":"https://api.github.com/users/PrismJS/events{/privacy}","received_events_url":"https://api.github.com/users/PrismJS/received_events","type":"Organization","site_admin":false},"repo":{"id":4979467,"name":"prism","full_name":"PrismJS/prism","owner":{"login":"PrismJS","id":11140484,"avatar_url":"https://avatars3.githubusercontent.com/u/11140484?v=4","gravatar_id":"","url":"https://api.github.com/users/PrismJS","html_url":"https://github.com/PrismJS","followers_url":"https://api.github.com/users/PrismJS/followers","following_url":"https://api.github.com/users/PrismJS/following{/other_user}","gists_url":"https://api.github.com/users/PrismJS/gists{/gist_id}","starred_url":"https://api.github.com/users/PrismJS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrismJS/subscriptions","organizations_url":"https://api.github.com/users/PrismJS/orgs","repos_url":"https://api.github.com/users/PrismJS/repos","events_url":"https://api.github.com/users/PrismJS/events{/privacy}","received_events_url":"https://api.github.com/users/PrismJS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrismJS/prism","description":"Lightweight, robust, elegant syntax highlighting.","fork":false,"url":"https://api.github.com/repos/PrismJS/prism","forks_url":"https://api.github.com/repos/PrismJS/prism/forks","keys_url":"https://api.github.com/repos/PrismJS/prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrismJS/prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrismJS/prism/teams","hooks_url":"https://api.github.com/repos/PrismJS/prism/hooks","issue_events_url":"https://api.github.com/repos/PrismJS/prism/issues/events{/number}","events_url":"https://api.github.com/repos/PrismJS/prism/events","assignees_url":"https://api.github.com/repos/PrismJS/prism/assignees{/user}","branches_url":"https://api.github.com/repos/PrismJS/prism/branches{/branch}","tags_url":"https://api.github.com/repos/PrismJS/prism/tags","blobs_url":"https://api.github.com/repos/PrismJS/prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrismJS/prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrismJS/prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrismJS/prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrismJS/prism/statuses/{sha}","languages_url":"https://api.github.com/repos/PrismJS/prism/languages","stargazers_url":"https://api.github.com/repos/PrismJS/prism/stargazers","contributors_url":"https://api.github.com/repos/PrismJS/prism/contributors","subscribers_url":"https://api.github.com/repos/PrismJS/prism/subscribers","subscription_url":"https://api.github.com/repos/PrismJS/prism/subscription","commits_url":"https://api.github.com/repos/PrismJS/prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrismJS/prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrismJS/prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrismJS/prism/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrismJS/prism/contents/{+path}","compare_url":"https://api.github.com/repos/PrismJS/prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrismJS/prism/merges","archive_url":"https://api.github.com/repos/PrismJS/prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrismJS/prism/downloads","issues_url":"https://api.github.com/repos/PrismJS/prism/issues{/number}","pulls_url":"https://api.github.com/repos/PrismJS/prism/pulls{/number}","milestones_url":"https://api.github.com/repos/PrismJS/prism/milestones{/number}","notifications_url":"https://api.github.com/repos/PrismJS/prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrismJS/prism/labels{/name}","releases_url":"https://api.github.com/repos/PrismJS/prism/releases{/id}","deployments_url":"https://api.github.com/repos/PrismJS/prism/deployments","created_at":"2012-07-10T19:47:14Z","updated_at":"2018-03-01T16:28:08Z","pushed_at":"2018-03-01T22:51:11Z","git_url":"git://github.com/PrismJS/prism.git","ssh_url":"git@github.com:PrismJS/prism.git","clone_url":"https://github.com/PrismJS/prism.git","svn_url":"https://github.com/PrismJS/prism","homepage":"http://prismjs.com","size":4450,"stargazers_count":5010,"watchers_count":5010,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":627,"mirror_url":null,"archived":false,"open_issues_count":128,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":627,"open_issues":128,"watchers":5010,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1297"},"html":{"href":"https://github.com/PrismJS/prism/pull/1297"},"issue":{"href":"https://api.github.com/repos/PrismJS/prism/issues/1297"},"comments":{"href":"https://api.github.com/repos/PrismJS/prism/issues/1297/comments"},"review_comments":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1297/comments"},"review_comment":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrismJS/prism/pulls/1297/commits"},"statuses":{"href":"https://api.github.com/repos/PrismJS/prism/statuses/84369eddb1eb67d6b2a2b75a868733e054936a58"}},"author_association":"NONE"}}
{"actor":{"display_login":"Golmote"}}