{"action":"created","issue":{"url":"https://api.github.com/repos/jonathantneal/postcss-nesting/issues/41","repository_url":"https://api.github.com/repos/jonathantneal/postcss-nesting","labels_url":"https://api.github.com/repos/jonathantneal/postcss-nesting/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/jonathantneal/postcss-nesting/issues/41/comments","events_url":"https://api.github.com/repos/jonathantneal/postcss-nesting/issues/41/events","html_url":"https://github.com/jonathantneal/postcss-nesting/issues/41","id":242195140,"number":41,"title":"Nested BEM selectors not unwrapping","user":{"login":"krambuhl","id":1424368,"avatar_url":"https://avatars3.githubusercontent.com/u/1424368?v=3","gravatar_id":"","url":"https://api.github.com/users/krambuhl","html_url":"https://github.com/krambuhl","followers_url":"https://api.github.com/users/krambuhl/followers","following_url":"https://api.github.com/users/krambuhl/following{/other_user}","gists_url":"https://api.github.com/users/krambuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/krambuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krambuhl/subscriptions","organizations_url":"https://api.github.com/users/krambuhl/orgs","repos_url":"https://api.github.com/users/krambuhl/repos","events_url":"https://api.github.com/users/krambuhl/events{/privacy}","received_events_url":"https://api.github.com/users/krambuhl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-11T21:52:07Z","updated_at":"2017-07-11T22:23:35Z","closed_at":"2017-07-11T22:23:35Z","body":"It appears that version `4.0` requires whitespace between the ampersand and nested selectors.  This breaks a pattern that we have adopted for BEM style naming conventions, which had been working on the `3.0` releases.\r\n\r\nIt looks like the rule validation was the major change from 3 and 4.  I was unable to decipher if this is valid based on the written spec. \r\n\r\nIs this the expected results? \r\n\r\nInput:\r\n\r\n```css\r\n.box {\r\n  & a { color: pink; }\r\n\r\n  &__element {\r\n    color: red;\r\n  }\r\n\r\n  &--modifier {\r\n    color: yellow;\r\n\r\n    & a {\r\n      color: green;\r\n\r\n      &:hover { text-decoration: underline; }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nOutput:\r\n```css\r\n.box a {\r\n    color: pink;\r\n}\r\n.box {\r\n    &__element { color: red; }\r\n    &--modifier { color: yellow; }\r\n    &--modifier a { color: green; }\r\n    &--modifier a:hover { text-decoration: underline; }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jonathantneal/postcss-nesting/issues/comments/314589396","html_url":"https://github.com/jonathantneal/postcss-nesting/issues/41#issuecomment-314589396","issue_url":"https://api.github.com/repos/jonathantneal/postcss-nesting/issues/41","id":314589396,"user":{"login":"jonathantneal","id":188426,"avatar_url":"https://avatars3.githubusercontent.com/u/188426?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathantneal","html_url":"https://github.com/jonathantneal","followers_url":"https://api.github.com/users/jonathantneal/followers","following_url":"https://api.github.com/users/jonathantneal/following{/other_user}","gists_url":"https://api.github.com/users/jonathantneal/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathantneal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathantneal/subscriptions","organizations_url":"https://api.github.com/users/jonathantneal/orgs","repos_url":"https://api.github.com/users/jonathantneal/repos","events_url":"https://api.github.com/users/jonathantneal/events{/privacy}","received_events_url":"https://api.github.com/users/jonathantneal/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T22:23:35Z","updated_at":"2017-07-11T22:23:35Z","body":"@tbremer, your response is a gold standard for clarity, accuracy, and helpfulness. Thank you."}}
{"actor":{"display_login":"jonathantneal"}}