{"action":"created","comment":{"url":"https://api.github.com/repos/sass/libsass/pulls/comments/26916361","id":26916361,"diff_hunk":"@@ -174,6 +174,14 @@ namespace Sass {\n       return peek< mx >(peek < css_comments >(start));\n     }\n \n+    // at-directives that aren't just prefixes\n+    template <prelexer mx>\n+    const char* peek_directive(const char* start = 0)\n+    {\n+      // now peek a token (skip comments first)\n+      return peek< sequence< mx, negate< identifier > > >(start);","path":"parser.hpp","position":9,"original_position":9,"commit_id":"5c39f37b213ee9d60fa9f3af2a7cbbcc661fe881","original_commit_id":"5c39f37b213ee9d60fa9f3af2a7cbbcc661fe881","user":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"body":"Maybe it would be more correct to have a [word-boundary] [1] match (like regex has with `\\b`)?\r\nOther than that I fully agree that this should be a step in the right direction!\r\n\r\n[1]: http://www.regular-expressions.info/wordboundaries.html","created_at":"2015-03-23T06:43:25Z","updated_at":"2015-03-23T06:43:25Z","html_url":"https://github.com/sass/libsass/pull/977#discussion_r26916361","pull_request_url":"https://api.github.com/repos/sass/libsass/pulls/977","_links":{"self":{"href":"https://api.github.com/repos/sass/libsass/pulls/comments/26916361"},"html":{"href":"https://github.com/sass/libsass/pull/977#discussion_r26916361"},"pull_request":{"href":"https://api.github.com/repos/sass/libsass/pulls/977"}}},"pull_request":{"url":"https://api.github.com/repos/sass/libsass/pulls/977","id":31700941,"html_url":"https://github.com/sass/libsass/pull/977","diff_url":"https://github.com/sass/libsass/pull/977.diff","patch_url":"https://github.com/sass/libsass/pull/977.patch","issue_url":"https://api.github.com/repos/sass/libsass/issues/977","number":977,"state":"open","locked":false,"title":"Parse at-directives to the word boundary","user":{"login":"xzyfer","id":579928,"avatar_url":"https://avatars.githubusercontent.com/u/579928?v=3","gravatar_id":"","url":"https://api.github.com/users/xzyfer","html_url":"https://github.com/xzyfer","followers_url":"https://api.github.com/users/xzyfer/followers","following_url":"https://api.github.com/users/xzyfer/following{/other_user}","gists_url":"https://api.github.com/users/xzyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/xzyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzyfer/subscriptions","organizations_url":"https://api.github.com/users/xzyfer/orgs","repos_url":"https://api.github.com/users/xzyfer/repos","events_url":"https://api.github.com/users/xzyfer/events{/privacy}","received_events_url":"https://api.github.com/users/xzyfer/received_events","type":"User","site_admin":false},"body":"This PR fixes the parsing of at-directives making sure we take into account the whole directive.\r\n\r\nFixes https://github.com/sass/libsass/issues/976. Needs spec.\r\n\r\n### Todo\r\n\r\n- [ ]  fix whitespace in output\r\n\r\n/cc @mgreter ","created_at":"2015-03-23T02:18:20Z","updated_at":"2015-03-23T06:43:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85e03146f10b252e9bf61ff0b9c41a8ac98810b0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sass/libsass/pulls/977/commits","review_comments_url":"https://api.github.com/repos/sass/libsass/pulls/977/comments","review_comment_url":"https://api.github.com/repos/sass/libsass/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sass/libsass/issues/977/comments","statuses_url":"https://api.github.com/repos/sass/libsass/statuses/5c39f37b213ee9d60fa9f3af2a7cbbcc661fe881","head":{"label":"xzyfer:fix/at-directive-parsing","ref":"fix/at-directive-parsing","sha":"5c39f37b213ee9d60fa9f3af2a7cbbcc661fe881","user":{"login":"xzyfer","id":579928,"avatar_url":"https://avatars.githubusercontent.com/u/579928?v=3","gravatar_id":"","url":"https://api.github.com/users/xzyfer","html_url":"https://github.com/xzyfer","followers_url":"https://api.github.com/users/xzyfer/followers","following_url":"https://api.github.com/users/xzyfer/following{/other_user}","gists_url":"https://api.github.com/users/xzyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/xzyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzyfer/subscriptions","organizations_url":"https://api.github.com/users/xzyfer/orgs","repos_url":"https://api.github.com/users/xzyfer/repos","events_url":"https://api.github.com/users/xzyfer/events{/privacy}","received_events_url":"https://api.github.com/users/xzyfer/received_events","type":"User","site_admin":false},"repo":{"id":24781201,"name":"libsass","full_name":"xzyfer/libsass","owner":{"login":"xzyfer","id":579928,"avatar_url":"https://avatars.githubusercontent.com/u/579928?v=3","gravatar_id":"","url":"https://api.github.com/users/xzyfer","html_url":"https://github.com/xzyfer","followers_url":"https://api.github.com/users/xzyfer/followers","following_url":"https://api.github.com/users/xzyfer/following{/other_user}","gists_url":"https://api.github.com/users/xzyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/xzyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzyfer/subscriptions","organizations_url":"https://api.github.com/users/xzyfer/orgs","repos_url":"https://api.github.com/users/xzyfer/repos","events_url":"https://api.github.com/users/xzyfer/events{/privacy}","received_events_url":"https://api.github.com/users/xzyfer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xzyfer/libsass","description":"A C/C++ implementation of a Sass compiler","fork":true,"url":"https://api.github.com/repos/xzyfer/libsass","forks_url":"https://api.github.com/repos/xzyfer/libsass/forks","keys_url":"https://api.github.com/repos/xzyfer/libsass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xzyfer/libsass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xzyfer/libsass/teams","hooks_url":"https://api.github.com/repos/xzyfer/libsass/hooks","issue_events_url":"https://api.github.com/repos/xzyfer/libsass/issues/events{/number}","events_url":"https://api.github.com/repos/xzyfer/libsass/events","assignees_url":"https://api.github.com/repos/xzyfer/libsass/assignees{/user}","branches_url":"https://api.github.com/repos/xzyfer/libsass/branches{/branch}","tags_url":"https://api.github.com/repos/xzyfer/libsass/tags","blobs_url":"https://api.github.com/repos/xzyfer/libsass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xzyfer/libsass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xzyfer/libsass/git/refs{/sha}","trees_url":"https://api.github.com/repos/xzyfer/libsass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xzyfer/libsass/statuses/{sha}","languages_url":"https://api.github.com/repos/xzyfer/libsass/languages","stargazers_url":"https://api.github.com/repos/xzyfer/libsass/stargazers","contributors_url":"https://api.github.com/repos/xzyfer/libsass/contributors","subscribers_url":"https://api.github.com/repos/xzyfer/libsass/subscribers","subscription_url":"https://api.github.com/repos/xzyfer/libsass/subscription","commits_url":"https://api.github.com/repos/xzyfer/libsass/commits{/sha}","git_commits_url":"https://api.github.com/repos/xzyfer/libsass/git/commits{/sha}","comments_url":"https://api.github.com/repos/xzyfer/libsass/comments{/number}","issue_comment_url":"https://api.github.com/repos/xzyfer/libsass/issues/comments{/number}","contents_url":"https://api.github.com/repos/xzyfer/libsass/contents/{+path}","compare_url":"https://api.github.com/repos/xzyfer/libsass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xzyfer/libsass/merges","archive_url":"https://api.github.com/repos/xzyfer/libsass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xzyfer/libsass/downloads","issues_url":"https://api.github.com/repos/xzyfer/libsass/issues{/number}","pulls_url":"https://api.github.com/repos/xzyfer/libsass/pulls{/number}","milestones_url":"https://api.github.com/repos/xzyfer/libsass/milestones{/number}","notifications_url":"https://api.github.com/repos/xzyfer/libsass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xzyfer/libsass/labels{/name}","releases_url":"https://api.github.com/repos/xzyfer/libsass/releases{/id}","created_at":"2014-10-04T03:51:20Z","updated_at":"2015-03-20T03:22:26Z","pushed_at":"2015-03-23T02:17:00Z","git_url":"git://github.com/xzyfer/libsass.git","ssh_url":"git@github.com:xzyfer/libsass.git","clone_url":"https://github.com/xzyfer/libsass.git","svn_url":"https://github.com/xzyfer/libsass","homepage":"http://libsass.org","size":8519,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sass:master","ref":"master","sha":"3681c480d6105fc18b600e5a8c739d70da65439c","user":{"login":"sass","id":317889,"avatar_url":"https://avatars.githubusercontent.com/u/317889?v=3","gravatar_id":"","url":"https://api.github.com/users/sass","html_url":"https://github.com/sass","followers_url":"https://api.github.com/users/sass/followers","following_url":"https://api.github.com/users/sass/following{/other_user}","gists_url":"https://api.github.com/users/sass/gists{/gist_id}","starred_url":"https://api.github.com/users/sass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sass/subscriptions","organizations_url":"https://api.github.com/users/sass/orgs","repos_url":"https://api.github.com/users/sass/repos","events_url":"https://api.github.com/users/sass/events{/privacy}","received_events_url":"https://api.github.com/users/sass/received_events","type":"Organization","site_admin":false},"repo":{"id":3319769,"name":"libsass","full_name":"sass/libsass","owner":{"login":"sass","id":317889,"avatar_url":"https://avatars.githubusercontent.com/u/317889?v=3","gravatar_id":"","url":"https://api.github.com/users/sass","html_url":"https://github.com/sass","followers_url":"https://api.github.com/users/sass/followers","following_url":"https://api.github.com/users/sass/following{/other_user}","gists_url":"https://api.github.com/users/sass/gists{/gist_id}","starred_url":"https://api.github.com/users/sass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sass/subscriptions","organizations_url":"https://api.github.com/users/sass/orgs","repos_url":"https://api.github.com/users/sass/repos","events_url":"https://api.github.com/users/sass/events{/privacy}","received_events_url":"https://api.github.com/users/sass/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sass/libsass","description":"A C/C++ implementation of a Sass compiler","fork":false,"url":"https://api.github.com/repos/sass/libsass","forks_url":"https://api.github.com/repos/sass/libsass/forks","keys_url":"https://api.github.com/repos/sass/libsass/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sass/libsass/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sass/libsass/teams","hooks_url":"https://api.github.com/repos/sass/libsass/hooks","issue_events_url":"https://api.github.com/repos/sass/libsass/issues/events{/number}","events_url":"https://api.github.com/repos/sass/libsass/events","assignees_url":"https://api.github.com/repos/sass/libsass/assignees{/user}","branches_url":"https://api.github.com/repos/sass/libsass/branches{/branch}","tags_url":"https://api.github.com/repos/sass/libsass/tags","blobs_url":"https://api.github.com/repos/sass/libsass/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sass/libsass/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sass/libsass/git/refs{/sha}","trees_url":"https://api.github.com/repos/sass/libsass/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sass/libsass/statuses/{sha}","languages_url":"https://api.github.com/repos/sass/libsass/languages","stargazers_url":"https://api.github.com/repos/sass/libsass/stargazers","contributors_url":"https://api.github.com/repos/sass/libsass/contributors","subscribers_url":"https://api.github.com/repos/sass/libsass/subscribers","subscription_url":"https://api.github.com/repos/sass/libsass/subscription","commits_url":"https://api.github.com/repos/sass/libsass/commits{/sha}","git_commits_url":"https://api.github.com/repos/sass/libsass/git/commits{/sha}","comments_url":"https://api.github.com/repos/sass/libsass/comments{/number}","issue_comment_url":"https://api.github.com/repos/sass/libsass/issues/comments{/number}","contents_url":"https://api.github.com/repos/sass/libsass/contents/{+path}","compare_url":"https://api.github.com/repos/sass/libsass/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sass/libsass/merges","archive_url":"https://api.github.com/repos/sass/libsass/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sass/libsass/downloads","issues_url":"https://api.github.com/repos/sass/libsass/issues{/number}","pulls_url":"https://api.github.com/repos/sass/libsass/pulls{/number}","milestones_url":"https://api.github.com/repos/sass/libsass/milestones{/number}","notifications_url":"https://api.github.com/repos/sass/libsass/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sass/libsass/labels{/name}","releases_url":"https://api.github.com/repos/sass/libsass/releases{/id}","created_at":"2012-01-31T22:59:07Z","updated_at":"2015-03-22T11:40:48Z","pushed_at":"2015-03-23T02:18:20Z","git_url":"git://github.com/sass/libsass.git","ssh_url":"git@github.com:sass/libsass.git","clone_url":"https://github.com/sass/libsass.git","svn_url":"https://github.com/sass/libsass","homepage":"http://libsass.org","size":17344,"stargazers_count":2205,"watchers_count":2205,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":241,"mirror_url":null,"open_issues_count":38,"forks":241,"open_issues":38,"watchers":2205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sass/libsass/pulls/977"},"html":{"href":"https://github.com/sass/libsass/pull/977"},"issue":{"href":"https://api.github.com/repos/sass/libsass/issues/977"},"comments":{"href":"https://api.github.com/repos/sass/libsass/issues/977/comments"},"review_comments":{"href":"https://api.github.com/repos/sass/libsass/pulls/977/comments"},"review_comment":{"href":"https://api.github.com/repos/sass/libsass/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sass/libsass/pulls/977/commits"},"statuses":{"href":"https://api.github.com/repos/sass/libsass/statuses/5c39f37b213ee9d60fa9f3af2a7cbbcc661fe881"}}}}