{"action":"created","comment":{"url":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/comments/45420027","id":45420027,"diff_hunk":"@@ -137,6 +137,17 @@ describe('ScssCommentParser', function () {\n       });\n     });\n \n+    describe('css rule', function(){\n+      it('should detect it', function(){\n+        var context = parser.contextParser(getContent('rule.test.scss'));\n+        assert.deepEqual(context, {\n+          type: 'css',\n+          name: '.foo',\n+          value: 'font-weight: bold;\\n  color: red;\\n  .bar {\\n    color: blue;\\n  }'","path":"test/test.js","position":10,"original_position":10,"commit_id":"3463c6d6e3133b818fc45fb257529f3170fb7dcd","original_commit_id":"3463c6d6e3133b818fc45fb257529f3170fb7dcd","user":{"login":"carljm","id":61586,"avatar_url":"https://avatars.githubusercontent.com/u/61586?v=3","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"body":"Yeah, I debated about the names. I chose `name` and `value` for consistency with all the other types, but if that consistency doesn't matter it would probably be better to use `selector` and `body`.\r\n\r\nAnd the leading `{` and trailing `}` of the body are both removed, but if you think it's better to include them I can certainly do that.","created_at":"2015-11-20T00:05:06Z","updated_at":"2015-11-20T00:05:06Z","html_url":"https://github.com/SassDoc/scss-comment-parser/pull/21#discussion_r45420027","pull_request_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/comments/45420027"},"html":{"href":"https://github.com/SassDoc/scss-comment-parser/pull/21#discussion_r45420027"},"pull_request":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21","id":51266109,"html_url":"https://github.com/SassDoc/scss-comment-parser/pull/21","diff_url":"https://github.com/SassDoc/scss-comment-parser/pull/21.diff","patch_url":"https://github.com/SassDoc/scss-comment-parser/pull/21.patch","issue_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/issues/21","number":21,"state":"open","locked":false,"title":"Can parse CSS rule code contexts, too.","user":{"login":"carljm","id":61586,"avatar_url":"https://avatars.githubusercontent.com/u/61586?v=3","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"body":"Hi! We'd like to use SassDoc as part of a \"living styleguide\" system for our projects, and for this to work it needs to have the capability to annotate CSS rule blocks as well as functions/variables/mixins/placeholders. This pull request adds that capability to the comments context parser.\r\n\r\nI see that the broad concept has been rejected before, on \"do just one thing\" grounds (e.g. see https://github.com/SassDoc/sassdoc/issues/268), but I'd like to request re-consideration. Accepting this small PR does not mean changing the primary supported purpose of SassDoc in any way, it just adds a bit more flexibility for those of us who want to experiment with extending SassDoc in \"off the beaten path\" ways, without harming or impacting the existing uses at all.\r\n\r\nThoughts? Thanks for considering.","created_at":"2015-11-19T19:07:43Z","updated_at":"2015-11-20T00:05:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b56f16caaa1c77fc37ac627596ea342865be2e96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21/commits","review_comments_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21/comments","review_comment_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/issues/21/comments","statuses_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/statuses/3463c6d6e3133b818fc45fb257529f3170fb7dcd","head":{"label":"oddbird:css-context","ref":"css-context","sha":"3463c6d6e3133b818fc45fb257529f3170fb7dcd","user":{"login":"oddbird","id":780830,"avatar_url":"https://avatars.githubusercontent.com/u/780830?v=3","gravatar_id":"","url":"https://api.github.com/users/oddbird","html_url":"https://github.com/oddbird","followers_url":"https://api.github.com/users/oddbird/followers","following_url":"https://api.github.com/users/oddbird/following{/other_user}","gists_url":"https://api.github.com/users/oddbird/gists{/gist_id}","starred_url":"https://api.github.com/users/oddbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddbird/subscriptions","organizations_url":"https://api.github.com/users/oddbird/orgs","repos_url":"https://api.github.com/users/oddbird/repos","events_url":"https://api.github.com/users/oddbird/events{/privacy}","received_events_url":"https://api.github.com/users/oddbird/received_events","type":"Organization","site_admin":false},"repo":{"id":46513603,"name":"scss-comment-parser","full_name":"oddbird/scss-comment-parser","owner":{"login":"oddbird","id":780830,"avatar_url":"https://avatars.githubusercontent.com/u/780830?v=3","gravatar_id":"","url":"https://api.github.com/users/oddbird","html_url":"https://github.com/oddbird","followers_url":"https://api.github.com/users/oddbird/followers","following_url":"https://api.github.com/users/oddbird/following{/other_user}","gists_url":"https://api.github.com/users/oddbird/gists{/gist_id}","starred_url":"https://api.github.com/users/oddbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddbird/subscriptions","organizations_url":"https://api.github.com/users/oddbird/orgs","repos_url":"https://api.github.com/users/oddbird/repos","events_url":"https://api.github.com/users/oddbird/events{/privacy}","received_events_url":"https://api.github.com/users/oddbird/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oddbird/scss-comment-parser","description":"SCSS comments parser, with context information.","fork":true,"url":"https://api.github.com/repos/oddbird/scss-comment-parser","forks_url":"https://api.github.com/repos/oddbird/scss-comment-parser/forks","keys_url":"https://api.github.com/repos/oddbird/scss-comment-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oddbird/scss-comment-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oddbird/scss-comment-parser/teams","hooks_url":"https://api.github.com/repos/oddbird/scss-comment-parser/hooks","issue_events_url":"https://api.github.com/repos/oddbird/scss-comment-parser/issues/events{/number}","events_url":"https://api.github.com/repos/oddbird/scss-comment-parser/events","assignees_url":"https://api.github.com/repos/oddbird/scss-comment-parser/assignees{/user}","branches_url":"https://api.github.com/repos/oddbird/scss-comment-parser/branches{/branch}","tags_url":"https://api.github.com/repos/oddbird/scss-comment-parser/tags","blobs_url":"https://api.github.com/repos/oddbird/scss-comment-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oddbird/scss-comment-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oddbird/scss-comment-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/oddbird/scss-comment-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oddbird/scss-comment-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/oddbird/scss-comment-parser/languages","stargazers_url":"https://api.github.com/repos/oddbird/scss-comment-parser/stargazers","contributors_url":"https://api.github.com/repos/oddbird/scss-comment-parser/contributors","subscribers_url":"https://api.github.com/repos/oddbird/scss-comment-parser/subscribers","subscription_url":"https://api.github.com/repos/oddbird/scss-comment-parser/subscription","commits_url":"https://api.github.com/repos/oddbird/scss-comment-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/oddbird/scss-comment-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/oddbird/scss-comment-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/oddbird/scss-comment-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/oddbird/scss-comment-parser/contents/{+path}","compare_url":"https://api.github.com/repos/oddbird/scss-comment-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oddbird/scss-comment-parser/merges","archive_url":"https://api.github.com/repos/oddbird/scss-comment-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oddbird/scss-comment-parser/downloads","issues_url":"https://api.github.com/repos/oddbird/scss-comment-parser/issues{/number}","pulls_url":"https://api.github.com/repos/oddbird/scss-comment-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/oddbird/scss-comment-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/oddbird/scss-comment-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oddbird/scss-comment-parser/labels{/name}","releases_url":"https://api.github.com/repos/oddbird/scss-comment-parser/releases{/id}","created_at":"2015-11-19T18:58:19Z","updated_at":"2015-11-19T18:58:20Z","pushed_at":"2015-11-19T19:09:05Z","git_url":"git://github.com/oddbird/scss-comment-parser.git","ssh_url":"git@github.com:oddbird/scss-comment-parser.git","clone_url":"https://github.com/oddbird/scss-comment-parser.git","svn_url":"https://github.com/oddbird/scss-comment-parser","homepage":"","size":52,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"SassDoc:master","ref":"master","sha":"9573b68ea1cb5c7ac2a99654f06a31a08e6f83cb","user":{"login":"SassDoc","id":8111770,"avatar_url":"https://avatars.githubusercontent.com/u/8111770?v=3","gravatar_id":"","url":"https://api.github.com/users/SassDoc","html_url":"https://github.com/SassDoc","followers_url":"https://api.github.com/users/SassDoc/followers","following_url":"https://api.github.com/users/SassDoc/following{/other_user}","gists_url":"https://api.github.com/users/SassDoc/gists{/gist_id}","starred_url":"https://api.github.com/users/SassDoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SassDoc/subscriptions","organizations_url":"https://api.github.com/users/SassDoc/orgs","repos_url":"https://api.github.com/users/SassDoc/repos","events_url":"https://api.github.com/users/SassDoc/events{/privacy}","received_events_url":"https://api.github.com/users/SassDoc/received_events","type":"Organization","site_admin":false},"repo":{"id":21498202,"name":"scss-comment-parser","full_name":"SassDoc/scss-comment-parser","owner":{"login":"SassDoc","id":8111770,"avatar_url":"https://avatars.githubusercontent.com/u/8111770?v=3","gravatar_id":"","url":"https://api.github.com/users/SassDoc","html_url":"https://github.com/SassDoc","followers_url":"https://api.github.com/users/SassDoc/followers","following_url":"https://api.github.com/users/SassDoc/following{/other_user}","gists_url":"https://api.github.com/users/SassDoc/gists{/gist_id}","starred_url":"https://api.github.com/users/SassDoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SassDoc/subscriptions","organizations_url":"https://api.github.com/users/SassDoc/orgs","repos_url":"https://api.github.com/users/SassDoc/repos","events_url":"https://api.github.com/users/SassDoc/events{/privacy}","received_events_url":"https://api.github.com/users/SassDoc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SassDoc/scss-comment-parser","description":"SCSS comments parser, with context information.","fork":false,"url":"https://api.github.com/repos/SassDoc/scss-comment-parser","forks_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/forks","keys_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/teams","hooks_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/hooks","issue_events_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/issues/events{/number}","events_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/events","assignees_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/assignees{/user}","branches_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/branches{/branch}","tags_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/tags","blobs_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/languages","stargazers_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/stargazers","contributors_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/contributors","subscribers_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/subscribers","subscription_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/subscription","commits_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/contents/{+path}","compare_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/merges","archive_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/downloads","issues_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/issues{/number}","pulls_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/labels{/name}","releases_url":"https://api.github.com/repos/SassDoc/scss-comment-parser/releases{/id}","created_at":"2014-07-04T13:32:37Z","updated_at":"2015-11-13T02:52:25Z","pushed_at":"2015-11-19T19:09:06Z","git_url":"git://github.com/SassDoc/scss-comment-parser.git","ssh_url":"git@github.com:SassDoc/scss-comment-parser.git","clone_url":"https://github.com/SassDoc/scss-comment-parser.git","svn_url":"https://github.com/SassDoc/scss-comment-parser","homepage":"","size":356,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21"},"html":{"href":"https://github.com/SassDoc/scss-comment-parser/pull/21"},"issue":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/issues/21"},"comments":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/SassDoc/scss-comment-parser/statuses/3463c6d6e3133b818fc45fb257529f3170fb7dcd"}}}}