{"action":"created","comment":{"url":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/comments/47449301","id":47449301,"diff_hunk":"@@ -72,6 +75,22 @@ module.exports = function (input) {\n             pos = next + 1;\n             code = value.charCodeAt(pos);\n \n+        //Comments\n+        } else if (code === slash && value.charCodeAt(pos + 1) === star) {\n+            token = { type: 'comment', sourceIndex: pos};\n+\n+            next = value.indexOf(commentEnd, pos);\n+            if (next < 0) {\n+                token.unclosed = true;\n+                next = value.length;                \n+            }\n+\n+            token.value = value.slice(pos + commentStart.length, next);","path":"lib/parse.js","position":33,"original_position":33,"commit_id":"7c29e8d4a21d2a9002197aba8a3e5e29a0b6e62f","original_commit_id":"7c29e8d4a21d2a9002197aba8a3e5e29a0b6e62f","user":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"body":"We know that `commentStart.length` is two. It's intuitive constant. Better use comment instead of variable.","created_at":"2015-12-13T20:01:46Z","updated_at":"2015-12-13T20:01:46Z","html_url":"https://github.com/TrySound/postcss-value-parser/pull/22#discussion_r47449301","pull_request_url":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/comments/47449301"},"html":{"href":"https://github.com/TrySound/postcss-value-parser/pull/22#discussion_r47449301"},"pull_request":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22","id":53500249,"html_url":"https://github.com/TrySound/postcss-value-parser/pull/22","diff_url":"https://github.com/TrySound/postcss-value-parser/pull/22.diff","patch_url":"https://github.com/TrySound/postcss-value-parser/pull/22.patch","issue_url":"https://api.github.com/repos/TrySound/postcss-value-parser/issues/22","number":22,"state":"open","locked":false,"title":"Add support for comment node","user":{"login":"MohammadYounes","id":4712046,"avatar_url":"https://avatars.githubusercontent.com/u/4712046?v=3","gravatar_id":"","url":"https://api.github.com/users/MohammadYounes","html_url":"https://github.com/MohammadYounes","followers_url":"https://api.github.com/users/MohammadYounes/followers","following_url":"https://api.github.com/users/MohammadYounes/following{/other_user}","gists_url":"https://api.github.com/users/MohammadYounes/gists{/gist_id}","starred_url":"https://api.github.com/users/MohammadYounes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MohammadYounes/subscriptions","organizations_url":"https://api.github.com/users/MohammadYounes/orgs","repos_url":"https://api.github.com/users/MohammadYounes/repos","events_url":"https://api.github.com/users/MohammadYounes/events{/privacy}","received_events_url":"https://api.github.com/users/MohammadYounes/received_events","type":"User","site_admin":false},"body":"Closes #10","created_at":"2015-12-13T13:48:59Z","updated_at":"2015-12-13T20:01:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47dfeffe98e066a05a31742ec303c40a51938a46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22/commits","review_comments_url":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22/comments","review_comment_url":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TrySound/postcss-value-parser/issues/22/comments","statuses_url":"https://api.github.com/repos/TrySound/postcss-value-parser/statuses/7c29e8d4a21d2a9002197aba8a3e5e29a0b6e62f","head":{"label":"MohammadYounes:comment-node","ref":"comment-node","sha":"7c29e8d4a21d2a9002197aba8a3e5e29a0b6e62f","user":{"login":"MohammadYounes","id":4712046,"avatar_url":"https://avatars.githubusercontent.com/u/4712046?v=3","gravatar_id":"","url":"https://api.github.com/users/MohammadYounes","html_url":"https://github.com/MohammadYounes","followers_url":"https://api.github.com/users/MohammadYounes/followers","following_url":"https://api.github.com/users/MohammadYounes/following{/other_user}","gists_url":"https://api.github.com/users/MohammadYounes/gists{/gist_id}","starred_url":"https://api.github.com/users/MohammadYounes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MohammadYounes/subscriptions","organizations_url":"https://api.github.com/users/MohammadYounes/orgs","repos_url":"https://api.github.com/users/MohammadYounes/repos","events_url":"https://api.github.com/users/MohammadYounes/events{/privacy}","received_events_url":"https://api.github.com/users/MohammadYounes/received_events","type":"User","site_admin":false},"repo":{"id":47918836,"name":"postcss-value-parser","full_name":"MohammadYounes/postcss-value-parser","owner":{"login":"MohammadYounes","id":4712046,"avatar_url":"https://avatars.githubusercontent.com/u/4712046?v=3","gravatar_id":"","url":"https://api.github.com/users/MohammadYounes","html_url":"https://github.com/MohammadYounes","followers_url":"https://api.github.com/users/MohammadYounes/followers","following_url":"https://api.github.com/users/MohammadYounes/following{/other_user}","gists_url":"https://api.github.com/users/MohammadYounes/gists{/gist_id}","starred_url":"https://api.github.com/users/MohammadYounes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MohammadYounes/subscriptions","organizations_url":"https://api.github.com/users/MohammadYounes/orgs","repos_url":"https://api.github.com/users/MohammadYounes/repos","events_url":"https://api.github.com/users/MohammadYounes/events{/privacy}","received_events_url":"https://api.github.com/users/MohammadYounes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MohammadYounes/postcss-value-parser","description":"Transforms css values into the tree","fork":true,"url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser","forks_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/forks","keys_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/teams","hooks_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/hooks","issue_events_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/issues/events{/number}","events_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/events","assignees_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/assignees{/user}","branches_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/branches{/branch}","tags_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/tags","blobs_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/languages","stargazers_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/stargazers","contributors_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/contributors","subscribers_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/subscribers","subscription_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/subscription","commits_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/contents/{+path}","compare_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/merges","archive_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/downloads","issues_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/issues{/number}","pulls_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/labels{/name}","releases_url":"https://api.github.com/repos/MohammadYounes/postcss-value-parser/releases{/id}","created_at":"2015-12-13T12:44:38Z","updated_at":"2015-12-13T12:44:39Z","pushed_at":"2015-12-13T16:15:03Z","git_url":"git://github.com/MohammadYounes/postcss-value-parser.git","ssh_url":"git@github.com:MohammadYounes/postcss-value-parser.git","clone_url":"https://github.com/MohammadYounes/postcss-value-parser.git","svn_url":"https://github.com/MohammadYounes/postcss-value-parser","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"TrySound:master","ref":"master","sha":"bc132d912cc243b5044cb14367afc30c49ccd16a","user":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"repo":{"id":40920306,"name":"postcss-value-parser","full_name":"TrySound/postcss-value-parser","owner":{"login":"TrySound","id":5635476,"avatar_url":"https://avatars.githubusercontent.com/u/5635476?v=3","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TrySound/postcss-value-parser","description":"Transforms css values into the tree","fork":false,"url":"https://api.github.com/repos/TrySound/postcss-value-parser","forks_url":"https://api.github.com/repos/TrySound/postcss-value-parser/forks","keys_url":"https://api.github.com/repos/TrySound/postcss-value-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrySound/postcss-value-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrySound/postcss-value-parser/teams","hooks_url":"https://api.github.com/repos/TrySound/postcss-value-parser/hooks","issue_events_url":"https://api.github.com/repos/TrySound/postcss-value-parser/issues/events{/number}","events_url":"https://api.github.com/repos/TrySound/postcss-value-parser/events","assignees_url":"https://api.github.com/repos/TrySound/postcss-value-parser/assignees{/user}","branches_url":"https://api.github.com/repos/TrySound/postcss-value-parser/branches{/branch}","tags_url":"https://api.github.com/repos/TrySound/postcss-value-parser/tags","blobs_url":"https://api.github.com/repos/TrySound/postcss-value-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrySound/postcss-value-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrySound/postcss-value-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrySound/postcss-value-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrySound/postcss-value-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/TrySound/postcss-value-parser/languages","stargazers_url":"https://api.github.com/repos/TrySound/postcss-value-parser/stargazers","contributors_url":"https://api.github.com/repos/TrySound/postcss-value-parser/contributors","subscribers_url":"https://api.github.com/repos/TrySound/postcss-value-parser/subscribers","subscription_url":"https://api.github.com/repos/TrySound/postcss-value-parser/subscription","commits_url":"https://api.github.com/repos/TrySound/postcss-value-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrySound/postcss-value-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrySound/postcss-value-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrySound/postcss-value-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrySound/postcss-value-parser/contents/{+path}","compare_url":"https://api.github.com/repos/TrySound/postcss-value-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrySound/postcss-value-parser/merges","archive_url":"https://api.github.com/repos/TrySound/postcss-value-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrySound/postcss-value-parser/downloads","issues_url":"https://api.github.com/repos/TrySound/postcss-value-parser/issues{/number}","pulls_url":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/TrySound/postcss-value-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/TrySound/postcss-value-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrySound/postcss-value-parser/labels{/name}","releases_url":"https://api.github.com/repos/TrySound/postcss-value-parser/releases{/id}","created_at":"2015-08-17T18:55:05Z","updated_at":"2015-12-09T00:07:58Z","pushed_at":"2015-12-13T16:15:04Z","git_url":"git://github.com/TrySound/postcss-value-parser.git","ssh_url":"git@github.com:TrySound/postcss-value-parser.git","clone_url":"https://github.com/TrySound/postcss-value-parser.git","svn_url":"https://github.com/TrySound/postcss-value-parser","homepage":null,"size":49,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22"},"html":{"href":"https://github.com/TrySound/postcss-value-parser/pull/22"},"issue":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/issues/22"},"comments":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/TrySound/postcss-value-parser/statuses/7c29e8d4a21d2a9002197aba8a3e5e29a0b6e62f"}}}}