{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss-scss/issues/5","labels_url":"https://api.github.com/repos/postcss/postcss-scss/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-scss/issues/5/comments","events_url":"https://api.github.com/repos/postcss/postcss-scss/issues/5/events","html_url":"https://github.com/postcss/postcss-scss/issues/5","id":104106300,"number":5,"title":"Unable to parse interpolation within property","user":{"login":"mahtd","id":6687627,"avatar_url":"https://avatars.githubusercontent.com/u/6687627?v=3","gravatar_id":"","url":"https://api.github.com/users/mahtd","html_url":"https://github.com/mahtd","followers_url":"https://api.github.com/users/mahtd/followers","following_url":"https://api.github.com/users/mahtd/following{/other_user}","gists_url":"https://api.github.com/users/mahtd/gists{/gist_id}","starred_url":"https://api.github.com/users/mahtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahtd/subscriptions","organizations_url":"https://api.github.com/users/mahtd/orgs","repos_url":"https://api.github.com/users/mahtd/repos","events_url":"https://api.github.com/users/mahtd/events{/privacy}","received_events_url":"https://api.github.com/users/mahtd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/postcss/postcss-scss/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-31T18:24:54Z","updated_at":"2015-09-12T10:37:22Z","closed_at":"2015-09-12T09:57:33Z","body":"Created this issue from my [comment](https://github.com/postcss/postcss-scss/issues/4#issuecomment-136021699) on the closed issue #4 so that the issue will have more visibility\r\n\r\nExpanding the test case for interpolation within a word causes a syntax error. Specifically, it's having a problem with the interpolation on the property (`border-#{$side}-width`). It seems the tokenizer splits this into three separate words, which the parser has a problem with\r\n\r\n```js\r\n    it('parses interpolation inside word', () => {\r\n        let root = parse('.#{class}:hover { border-#{$side}-width: #{$width}px; }');\r\n        expect(root.first.selector).to.eql('.#{class}:hover');\r\n        expect(root.first.first.prop).to.eql('border-#{$side}-width');\r\n        expect(root.first.first.value).to.eql('#{$width}px');\r\n    });\r\n```\r\n\r\nError:\r\n\r\n```\r\n  1) SCSS Parser parses interpolation inside word:\r\n     CssSyntaxError: <css input>:1:26: Unknown word\r\n  .#{class}:hover { border-#{$side}-width: #{$width}px; }\r\n                           ^\r\n      at Object.scssParse [as default] (lib/scss-parse.es6:10:12)\r\n      at Context.<anonymous> (test/parse.es6:75:20)\r\n```\r\n\r\nTokens:\r\n\r\n```js\r\n  [ 'word', 'border-', 1, 19, 1, 25 ],\r\n  [ 'word', '#{$side}', 1, 26, 1, 33 ],\r\n  [ 'word', '-width', 1, 34, 1, 39 ],\r\n```"},"comment":{"url":"https://api.github.com/repos/postcss/postcss-scss/issues/comments/139747793","html_url":"https://github.com/postcss/postcss-scss/issues/5#issuecomment-139747793","issue_url":"https://api.github.com/repos/postcss/postcss-scss/issues/5","id":139747793,"user":{"login":"ai","id":19343,"avatar_url":"https://avatars.githubusercontent.com/u/19343?v=3","gravatar_id":"","url":"https://api.github.com/users/ai","html_url":"https://github.com/ai","followers_url":"https://api.github.com/users/ai/followers","following_url":"https://api.github.com/users/ai/following{/other_user}","gists_url":"https://api.github.com/users/ai/gists{/gist_id}","starred_url":"https://api.github.com/users/ai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ai/subscriptions","organizations_url":"https://api.github.com/users/ai/orgs","repos_url":"https://api.github.com/users/ai/repos","events_url":"https://api.github.com/users/ai/events{/privacy}","received_events_url":"https://api.github.com/users/ai/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T10:37:22Z","updated_at":"2015-09-12T10:37:22Z","body":"Released in PostCSS 5.0.5."}}