GitHub PullRequestEvent at 2014-07-11 20:41:47
Repository: prism
Actor: zeitgeist87
Payload: {"action":"opened","number":291,"pull_request":{"url":"https://api.github.com/repos/LeaVerou/prism/pulls/291","id":18300655,"html_url":"https://github.com/LeaVerou/prism/pull/291","diff_url":"https://github.com/LeaVerou/prism/pull/291.diff","patch_url":"https://github.com/LeaVerou/prism/pull/291.patch","issue_url":"https://api.github.com/repos/LeaVerou/prism/issues/291","number":291,"state":"open","title":"Fix for some serious bugs in C and C++ highlighter","user":{"login":"zeitgeist87","id":1210795,"avatar_url":"https://avatars.githubusercontent.com/u/1210795?","gravatar_id":"5862de18239bd04a63128b8e934232e9","url":"https://api.github.com/users/zeitgeist87","html_url":"https://github.com/zeitgeist87","followers_url":"https://api.github.com/users/zeitgeist87/followers","following_url":"https://api.github.com/users/zeitgeist87/following{/other_user}","gists_url":"https://api.github.com/users/zeitgeist87/gists{/gist_id}","starred_url":"https://api.github.com/users/zeitgeist87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeitgeist87/subscriptions","organizations_url":"https://api.github.com/users/zeitgeist87/orgs","repos_url":"https://api.github.com/users/zeitgeist87/repos","events_url":"https://api.github.com/users/zeitgeist87/events{/privacy}","received_events_url":"https://api.github.com/users/zeitgeist87/received_events","type":"User","site_admin":false},"body":"&amp;lt; and &amp;gt; don't seem to work as they used to. So this patch replaces\r\nthem with the corresponding < or > sign like it was done in the clike\r\nbase language.\r\n\r\nThe pattern for macro statements was seriously flawed. It didn't allow\r\nfor macros with no argument like `#else` or `#endif`. This patch fixes the\r\nproblem and additionally adds support for multiline macros, which are\r\nfairly common.\r\n\r\n```c\r\n#define FOO(a, b, c)    \\\r\n    do {                \\\r\n        do_stuff_here   \\\r\n        do_more_stuff   \\\r\n    } while (0)\r\n```\r\nFurthermore the path of the `#include` macro is highlighted as a string.\r\n```c\r\n#include <stdio.h>\r\n#include \"config.h\"\r\n```\r\nC also allows for multiline strings in a similar way as multiline\r\nmacros.\r\n```c\r\n\"This is a\t\\\r\nmultiline\t\\\r\nstring\"\r\n```","created_at":"2014-07-11T20:41:46Z","updated_at":"2014-07-11T20:41:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LeaVerou/prism/pulls/291/commits","review_comments_url":"https://api.github.com/repos/LeaVerou/prism/pulls/291/comments","review_comment_url":"https://api.github.com/repos/LeaVerou/prism/pulls/comments/{number}","comments_url":"https://api.github.com/repos/LeaVerou/prism/issues/291/comments","statuses_url":"https://api.github.com/repos/LeaVerou/prism/statuses/550c81e72eeb26bc24de600bbcded6c58b2ea3f6","head":{"label":"zeitgeist87:gh-pages","ref":"gh-pages","sha":"550c81e72eeb26bc24de600bbcded6c58b2ea3f6","user":{"login":"zeitgeist87","id":1210795,"avatar_url":"https://avatars.githubusercontent.com/u/1210795?","gravatar_id":"5862de18239bd04a63128b8e934232e9","url":"https://api.github.com/users/zeitgeist87","html_url":"https://github.com/zeitgeist87","followers_url":"https://api.github.com/users/zeitgeist87/followers","following_url":"https://api.github.com/users/zeitgeist87/following{/other_user}","gists_url":"https://api.github.com/users/zeitgeist87/gists{/gist_id}","starred_url":"https://api.github.com/users/zeitgeist87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeitgeist87/subscriptions","organizations_url":"https://api.github.com/users/zeitgeist87/orgs","repos_url":"https://api.github.com/users/zeitgeist87/repos","events_url":"https://api.github.com/users/zeitgeist87/events{/privacy}","received_events_url":"https://api.github.com/users/zeitgeist87/received_events","type":"User","site_admin":false},"repo":{"id":8820511,"name":"prism","full_name":"zeitgeist87/prism","owner":{"login":"zeitgeist87","id":1210795,"avatar_url":"https://avatars.githubusercontent.com/u/1210795?","gravatar_id":"5862de18239bd04a63128b8e934232e9","url":"https://api.github.com/users/zeitgeist87","html_url":"https://github.com/zeitgeist87","followers_url":"https://api.github.com/users/zeitgeist87/followers","following_url":"https://api.github.com/users/zeitgeist87/following{/other_user}","gists_url":"https://api.github.com/users/zeitgeist87/gists{/gist_id}","starred_url":"https://api.github.com/users/zeitgeist87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeitgeist87/subscriptions","organizations_url":"https://api.github.com/users/zeitgeist87/orgs","repos_url":"https://api.github.com/users/zeitgeist87/repos","events_url":"https://api.github.com/users/zeitgeist87/events{/privacy}","received_events_url":"https://api.github.com/users/zeitgeist87/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zeitgeist87/prism","description":"Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet. ","fork":true,"url":"https://api.github.com/repos/zeitgeist87/prism","forks_url":"https://api.github.com/repos/zeitgeist87/prism/forks","keys_url":"https://api.github.com/repos/zeitgeist87/prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zeitgeist87/prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zeitgeist87/prism/teams","hooks_url":"https://api.github.com/repos/zeitgeist87/prism/hooks","issue_events_url":"https://api.github.com/repos/zeitgeist87/prism/issues/events{/number}","events_url":"https://api.github.com/repos/zeitgeist87/prism/events","assignees_url":"https://api.github.com/repos/zeitgeist87/prism/assignees{/user}","branches_url":"https://api.github.com/repos/zeitgeist87/prism/branches{/branch}","tags_url":"https://api.github.com/repos/zeitgeist87/prism/tags","blobs_url":"https://api.github.com/repos/zeitgeist87/prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zeitgeist87/prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zeitgeist87/prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/zeitgeist87/prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zeitgeist87/prism/statuses/{sha}","languages_url":"https://api.github.com/repos/zeitgeist87/prism/languages","stargazers_url":"https://api.github.com/repos/zeitgeist87/prism/stargazers","contributors_url":"https://api.github.com/repos/zeitgeist87/prism/contributors","subscribers_url":"https://api.github.com/repos/zeitgeist87/prism/subscribers","subscription_url":"https://api.github.com/repos/zeitgeist87/prism/subscription","commits_url":"https://api.github.com/repos/zeitgeist87/prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/zeitgeist87/prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/zeitgeist87/prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/zeitgeist87/prism/issues/comments/{number}","contents_url":"https://api.github.com/repos/zeitgeist87/prism/contents/{+path}","compare_url":"https://api.github.com/repos/zeitgeist87/prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zeitgeist87/prism/merges","archive_url":"https://api.github.com/repos/zeitgeist87/prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zeitgeist87/prism/downloads","issues_url":"https://api.github.com/repos/zeitgeist87/prism/issues{/number}","pulls_url":"https://api.github.com/repos/zeitgeist87/prism/pulls{/number}","milestones_url":"https://api.github.com/repos/zeitgeist87/prism/milestones{/number}","notifications_url":"https://api.github.com/repos/zeitgeist87/prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zeitgeist87/prism/labels{/name}","releases_url":"https://api.github.com/repos/zeitgeist87/prism/releases{/id}","created_at":"2013-03-16T15:15:33Z","updated_at":"2014-07-11T19:48:26Z","pushed_at":"2014-07-11T20:37:47Z","git_url":"git://github.com/zeitgeist87/prism.git","ssh_url":"git@github.com:zeitgeist87/prism.git","clone_url":"https://github.com/zeitgeist87/prism.git","svn_url":"https://github.com/zeitgeist87/prism","homepage":null,"size":1162,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"LeaVerou:gh-pages","ref":"gh-pages","sha":"a1047294aaaca69335f9a4fb01441c39687dc81e","user":{"login":"LeaVerou","id":175836,"avatar_url":"https://avatars.githubusercontent.com/u/175836?","gravatar_id":"3869e93ce6b2a22e37cf13281d9e6f75","url":"https://api.github.com/users/LeaVerou","html_url":"https://github.com/LeaVerou","followers_url":"https://api.github.com/users/LeaVerou/followers","following_url":"https://api.github.com/users/LeaVerou/following{/other_user}","gists_url":"https://api.github.com/users/LeaVerou/gists{/gist_id}","starred_url":"https://api.github.com/users/LeaVerou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeaVerou/subscriptions","organizations_url":"https://api.github.com/users/LeaVerou/orgs","repos_url":"https://api.github.com/users/LeaVerou/repos","events_url":"https://api.github.com/users/LeaVerou/events{/privacy}","received_events_url":"https://api.github.com/users/LeaVerou/received_events","type":"User","site_admin":false},"repo":{"id":4979467,"name":"prism","full_name":"LeaVerou/prism","owner":{"login":"LeaVerou","id":175836,"avatar_url":"https://avatars.githubusercontent.com/u/175836?","gravatar_id":"3869e93ce6b2a22e37cf13281d9e6f75","url":"https://api.github.com/users/LeaVerou","html_url":"https://github.com/LeaVerou","followers_url":"https://api.github.com/users/LeaVerou/followers","following_url":"https://api.github.com/users/LeaVerou/following{/other_user}","gists_url":"https://api.github.com/users/LeaVerou/gists{/gist_id}","starred_url":"https://api.github.com/users/LeaVerou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeaVerou/subscriptions","organizations_url":"https://api.github.com/users/LeaVerou/orgs","repos_url":"https://api.github.com/users/LeaVerou/repos","events_url":"https://api.github.com/users/LeaVerou/events{/privacy}","received_events_url":"https://api.github.com/users/LeaVerou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LeaVerou/prism","description":"Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet. ","fork":false,"url":"https://api.github.com/repos/LeaVerou/prism","forks_url":"https://api.github.com/repos/LeaVerou/prism/forks","keys_url":"https://api.github.com/repos/LeaVerou/prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeaVerou/prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeaVerou/prism/teams","hooks_url":"https://api.github.com/repos/LeaVerou/prism/hooks","issue_events_url":"https://api.github.com/repos/LeaVerou/prism/issues/events{/number}","events_url":"https://api.github.com/repos/LeaVerou/prism/events","assignees_url":"https://api.github.com/repos/LeaVerou/prism/assignees{/user}","branches_url":"https://api.github.com/repos/LeaVerou/prism/branches{/branch}","tags_url":"https://api.github.com/repos/LeaVerou/prism/tags","blobs_url":"https://api.github.com/repos/LeaVerou/prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeaVerou/prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeaVerou/prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeaVerou/prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeaVerou/prism/statuses/{sha}","languages_url":"https://api.github.com/repos/LeaVerou/prism/languages","stargazers_url":"https://api.github.com/repos/LeaVerou/prism/stargazers","contributors_url":"https://api.github.com/repos/LeaVerou/prism/contributors","subscribers_url":"https://api.github.com/repos/LeaVerou/prism/subscribers","subscription_url":"https://api.github.com/repos/LeaVerou/prism/subscription","commits_url":"https://api.github.com/repos/LeaVerou/prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeaVerou/prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeaVerou/prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeaVerou/prism/issues/comments/{number}","contents_url":"https://api.github.com/repos/LeaVerou/prism/contents/{+path}","compare_url":"https://api.github.com/repos/LeaVerou/prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeaVerou/prism/merges","archive_url":"https://api.github.com/repos/LeaVerou/prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeaVerou/prism/downloads","issues_url":"https://api.github.com/repos/LeaVerou/prism/issues{/number}","pulls_url":"https://api.github.com/repos/LeaVerou/prism/pulls{/number}","milestones_url":"https://api.github.com/repos/LeaVerou/prism/milestones{/number}","notifications_url":"https://api.github.com/repos/LeaVerou/prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeaVerou/prism/labels{/name}","releases_url":"https://api.github.com/repos/LeaVerou/prism/releases{/id}","created_at":"2012-07-10T19:47:14Z","updated_at":"2014-07-11T20:27:05Z","pushed_at":"2014-07-11T16:40:47Z","git_url":"git://github.com/LeaVerou/prism.git","ssh_url":"git@github.com:LeaVerou/prism.git","clone_url":"https://github.com/LeaVerou/prism.git","svn_url":"https://github.com/LeaVerou/prism","homepage":"http://prismjs.com","size":3358,"stargazers_count":1524,"watchers_count":1524,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":216,"mirror_url":null,"open_issues_count":79,"forks":216,"open_issues":79,"watchers":1524,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/LeaVerou/prism/pulls/291"},"html":{"href":"https://github.com/LeaVerou/prism/pull/291"},"issue":{"href":"https://api.github.com/repos/LeaVerou/prism/issues/291"},"comments":{"href":"https://api.github.com/repos/LeaVerou/prism/issues/291/comments"},"review_comments":{"href":"https://api.github.com/repos/LeaVerou/prism/pulls/291/comments"},"review_comment":{"href":"https://api.github.com/repos/LeaVerou/prism/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/LeaVerou/prism/pulls/291/commits"},"statuses":{"href":"https://api.github.com/repos/LeaVerou/prism/statuses/550c81e72eeb26bc24de600bbcded6c58b2ea3f6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":32,"deletions":12,"changed_files":4}}