{"action":"created","issue":{"url":"https://api.github.com/repos/averrin/color-tabs-regex/issues/6","labels_url":"https://api.github.com/repos/averrin/color-tabs-regex/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/averrin/color-tabs-regex/issues/6/comments","events_url":"https://api.github.com/repos/averrin/color-tabs-regex/issues/6/events","html_url":"https://github.com/averrin/color-tabs-regex/pull/6","id":93718663,"number":6,"title":"Fix #5 - added child rules","user":{"login":"bojidar-bg","id":5276727,"avatar_url":"https://avatars.githubusercontent.com/u/5276727?v=3","gravatar_id":"","url":"https://api.github.com/users/bojidar-bg","html_url":"https://github.com/bojidar-bg","followers_url":"https://api.github.com/users/bojidar-bg/followers","following_url":"https://api.github.com/users/bojidar-bg/following{/other_user}","gists_url":"https://api.github.com/users/bojidar-bg/gists{/gist_id}","starred_url":"https://api.github.com/users/bojidar-bg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojidar-bg/subscriptions","organizations_url":"https://api.github.com/users/bojidar-bg/orgs","repos_url":"https://api.github.com/users/bojidar-bg/repos","events_url":"https://api.github.com/users/bojidar-bg/events{/privacy}","received_events_url":"https://api.github.com/users/bojidar-bg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T07:30:27Z","updated_at":"2015-07-08T07:31:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/averrin/color-tabs-regex/pulls/6","html_url":"https://github.com/averrin/color-tabs-regex/pull/6","diff_url":"https://github.com/averrin/color-tabs-regex/pull/6.diff","patch_url":"https://github.com/averrin/color-tabs-regex/pull/6.patch"},"body":"@averrin ~ Please test this PR, because I haven't. (except basic tests like testing the expandRules function and compiling the coffeescript)\r\n\r\nThe config CSON might now look like: (in this example I'm using String.match and break on first match)\r\n````CSON\r\n\".*?/Projects/ColorfulProject/\":\r\n  \"models/\":\r\n    \".*?\\\\.js\": \"green\"\r\n    \".*?\\\\.sql\": \"blue\"\r\n  \".*?\\\\.js\": \"red\"\r\n  \".*?\\\\.html\": \"blue\"\r\n\".*?/Projects/GrayProject/.*\": \"gray\"\r\n````\r\nThese will be converted to normal rules like this:\r\n````CSON\r\n\".*?/Projects/ColorfulProject/models/.*?\\\\.js\": \"green\"\r\n\".*?/Projects/ColorfulProject/models/.*?\\\\.sql\": \"blue\"\r\n\".*?/Projects/ColorfulProject/.*?\\\\.js\": \"red\"\r\n\".*?/Projects/ColorfulProject/.*?\\\\.html\": \"blue\"\r\n\".*?/Projects/GrayProject/.*\": \"gray\"\r\n````"},"comment":{"url":"https://api.github.com/repos/averrin/color-tabs-regex/issues/comments/119468932","html_url":"https://github.com/averrin/color-tabs-regex/pull/6#issuecomment-119468932","issue_url":"https://api.github.com/repos/averrin/color-tabs-regex/issues/6","id":119468932,"user":{"login":"bojidar-bg","id":5276727,"avatar_url":"https://avatars.githubusercontent.com/u/5276727?v=3","gravatar_id":"","url":"https://api.github.com/users/bojidar-bg","html_url":"https://github.com/bojidar-bg","followers_url":"https://api.github.com/users/bojidar-bg/followers","following_url":"https://api.github.com/users/bojidar-bg/following{/other_user}","gists_url":"https://api.github.com/users/bojidar-bg/gists{/gist_id}","starred_url":"https://api.github.com/users/bojidar-bg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojidar-bg/subscriptions","organizations_url":"https://api.github.com/users/bojidar-bg/orgs","repos_url":"https://api.github.com/users/bojidar-bg/repos","events_url":"https://api.github.com/users/bojidar-bg/events{/privacy}","received_events_url":"https://api.github.com/users/bojidar-bg/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T07:31:47Z","updated_at":"2015-07-08T07:31:47Z","body":"Also, please note that this is my first time to write in coffeescript, so check the style :wink: "}}