{"action":"created","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/1029","labels_url":"https://api.github.com/repos/sass/libsass/issues/1029/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/1029/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/1029/events","html_url":"https://github.com/sass/libsass/issues/1029","id":65758944,"number":1029,"title":"A lost rule when extending inside a double for loop","user":{"login":"mzgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mzgol","html_url":"https://github.com/mzgol","followers_url":"https://api.github.com/users/mzgol/followers","following_url":"https://api.github.com/users/mzgol/following{/other_user}","gists_url":"https://api.github.com/users/mzgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mzgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzgol/subscriptions","organizations_url":"https://api.github.com/users/mzgol/orgs","repos_url":"https://api.github.com/users/mzgol/repos","events_url":"https://api.github.com/users/mzgol/events{/privacy}","received_events_url":"https://api.github.com/users/mzgol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/libsass/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/sass/libsass/labels/PR%20Ready","name":"PR Ready","color":"00FF00"},{"url":"https://api.github.com/repos/sass/libsass/labels/test%20written","name":"test written","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/sass/libsass/milestones/11","html_url":"https://github.com/sass/libsass/milestones/3.2.6","labels_url":"https://api.github.com/repos/sass/libsass/milestones/11/labels","id":1157617,"number":11,"title":"3.2.6","description":"","creator":{"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},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-06-09T21:39:16Z","updated_at":"2015-06-12T15:49:14Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-04-01T19:20:34Z","updated_at":"2015-06-12T19:53:38Z","closed_at":null,"body":"The following SCSS:\r\n```scss\r\n@for $i from 1 through 2 {\r\n    %shift-#{$i - 1} {\r\n        margin-left: $i * 1px;\r\n    }\r\n    .week-start-#{$i} {\r\n        @for $j from 1 through 2 {\r\n            .month-start-#{$j} {\r\n                @extend %shift-#{($j - $i - 1) % 2};\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\nlibsass from node-sass `3.0.0-beta.4` turns into:\r\n```css\r\n.week-start-1 .month-start-2, .week-start-2 .month-start-1 {\r\n  margin-left: 1px; }\r\n```\r\nLatest Ruby Sass gives:\r\n```css\r\n.week-start-1 .month-start-2, .week-start-2 .month-start-1 {\r\n  margin-left: 1px; }\r\n\r\n.week-start-1 .month-start-1, .week-start-2 .month-start-2 {\r\n  margin-left: 2px; }\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10328854-a-lost-rule-when-extending-inside-a-double-for-loop?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/sass/libsass/issues/comments/111598818","html_url":"https://github.com/sass/libsass/issues/1029#issuecomment-111598818","issue_url":"https://api.github.com/repos/sass/libsass/issues/1029","id":111598818,"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},"created_at":"2015-06-12T19:53:38Z","updated_at":"2015-06-12T19:53:38Z","body":"@xzyfer sorry, no, but the commit could be cherry picked from https://github.com/mgreter/libsass/commit/81a373b3fa0660baece17a83ab61c645a63dfa3d"}}