{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/1543","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/1543/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1543/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/1543/events","html_url":"https://github.com/Polymer/polymer/issues/1543","id":76793102,"number":1543,"title":"Default values for custom variables ","user":{"login":"blasten","id":1410613,"avatar_url":"https://avatars.githubusercontent.com/u/1410613?v=3","gravatar_id":"","url":"https://api.github.com/users/blasten","html_url":"https://github.com/blasten","followers_url":"https://api.github.com/users/blasten/followers","following_url":"https://api.github.com/users/blasten/following{/other_user}","gists_url":"https://api.github.com/users/blasten/gists{/gist_id}","starred_url":"https://api.github.com/users/blasten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blasten/subscriptions","organizations_url":"https://api.github.com/users/blasten/orgs","repos_url":"https://api.github.com/users/blasten/repos","events_url":"https://api.github.com/users/blasten/events{/privacy}","received_events_url":"https://api.github.com/users/blasten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Polymer/polymer/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Polymer/polymer/labels/p3","name":"p3","color":"cace85"}],"state":"open","locked":false,"assignee":{"login":"sorvell","id":78891,"avatar_url":"https://avatars.githubusercontent.com/u/78891?v=3","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-05-15T17:20:50Z","updated_at":"2015-05-22T07:40:22Z","closed_at":null,"body":"If you have a default value for a custom variable that contains parenthesis, the regexp for detecting variables stops working.\r\nHere's a use case:\r\n```css\r\n background-color: var(---default-color, rgba(0, 0, 0, 0.5));\r\n```\r\n\r\nThe regexp thinks that the closing parenthesis is the first `)` I wonder if there's a solution using regexp for dealing with recursion.\r\nThe workaround is to have a \r\n```css\r\n:root { \r\n   ---default-color:  rgba(0, 0, 0, 0.5);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/104553048","html_url":"https://github.com/Polymer/polymer/issues/1543#issuecomment-104553048","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/1543","id":104553048,"user":{"login":"blasten","id":1410613,"avatar_url":"https://avatars.githubusercontent.com/u/1410613?v=3","gravatar_id":"","url":"https://api.github.com/users/blasten","html_url":"https://github.com/blasten","followers_url":"https://api.github.com/users/blasten/followers","following_url":"https://api.github.com/users/blasten/following{/other_user}","gists_url":"https://api.github.com/users/blasten/gists{/gist_id}","starred_url":"https://api.github.com/users/blasten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blasten/subscriptions","organizations_url":"https://api.github.com/users/blasten/orgs","repos_url":"https://api.github.com/users/blasten/repos","events_url":"https://api.github.com/users/blasten/events{/privacy}","received_events_url":"https://api.github.com/users/blasten/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T07:40:22Z","updated_at":"2015-05-22T07:40:22Z","body":":+1: glad to hear"}}