{"action":"created","issue":{"url":"https://api.github.com/repos/facelessuser/BracketHighlighter/issues/341","repository_url":"https://api.github.com/repos/facelessuser/BracketHighlighter","labels_url":"https://api.github.com/repos/facelessuser/BracketHighlighter/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/facelessuser/BracketHighlighter/issues/341/comments","events_url":"https://api.github.com/repos/facelessuser/BracketHighlighter/issues/341/events","html_url":"https://github.com/facelessuser/BracketHighlighter/issues/341","id":158218334,"number":341,"title":"ES6 Arrow Functions break Bracket Highlighter","user":{"login":"wesbos","id":176013,"avatar_url":"https://avatars.githubusercontent.com/u/176013?v=3","gravatar_id":"","url":"https://api.github.com/users/wesbos","html_url":"https://github.com/wesbos","followers_url":"https://api.github.com/users/wesbos/followers","following_url":"https://api.github.com/users/wesbos/following{/other_user}","gists_url":"https://api.github.com/users/wesbos/gists{/gist_id}","starred_url":"https://api.github.com/users/wesbos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesbos/subscriptions","organizations_url":"https://api.github.com/users/wesbos/orgs","repos_url":"https://api.github.com/users/wesbos/repos","events_url":"https://api.github.com/users/wesbos/events{/privacy}","received_events_url":"https://api.github.com/users/wesbos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-02T19:18:02Z","updated_at":"2016-06-02T20:10:54Z","closed_at":null,"body":"Hey! Love this plugin - I make all my students install it and it saves us so much time. \r\n\r\nNow that I'm teaching arrow functions in JavaSCript, it seems that code like this will break the function block, or the curly brackets that define the function.\r\n\r\n![](http://wes.io/gLiS/content)\r\n\r\nYou'll see that the sublime match brackets is working, but the sidebar from this plugin is confused. \r\n\r\n```js\r\nfunction convertCurrency(rate, ...amounts) {\r\n  console.log(rate, amounts);\r\n  return amounts.map(amount => amount * rate);\r\n}\r\n```\r\n\r\nIt does the same on open\r\n\r\n![](http://wes.io/gM51/content) \r\n\r\nAny way we can fix this? "},"comment":{"url":"https://api.github.com/repos/facelessuser/BracketHighlighter/issues/comments/223407292","html_url":"https://github.com/facelessuser/BracketHighlighter/issues/341#issuecomment-223407292","issue_url":"https://api.github.com/repos/facelessuser/BracketHighlighter/issues/341","id":223407292,"user":{"login":"facelessuser","id":1055125,"avatar_url":"https://avatars.githubusercontent.com/u/1055125?v=3","gravatar_id":"","url":"https://api.github.com/users/facelessuser","html_url":"https://github.com/facelessuser","followers_url":"https://api.github.com/users/facelessuser/followers","following_url":"https://api.github.com/users/facelessuser/following{/other_user}","gists_url":"https://api.github.com/users/facelessuser/gists{/gist_id}","starred_url":"https://api.github.com/users/facelessuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facelessuser/subscriptions","organizations_url":"https://api.github.com/users/facelessuser/orgs","repos_url":"https://api.github.com/users/facelessuser/repos","events_url":"https://api.github.com/users/facelessuser/events{/privacy}","received_events_url":"https://api.github.com/users/facelessuser/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T20:10:54Z","updated_at":"2016-06-02T20:10:54Z","body":"I went a head and plugged your example into some HTML and (at least with the JS syntax highlighter I am using) this scope exclusion seemed to work `storage.type.function.arrow.js`.  I didn't test beyond a quick check, but maybe that is what you need.  This may vary form highlighter to highlighter which is why I usually just have the affected party issue a pull when they encounter such issues.\r\n\r\n![screenshot - 6_2_2016 2_10_01 pm](https://cloud.githubusercontent.com/assets/1055125/15759427/cc77c0ec-28cb-11e6-9faa-3a1a120f105a.png)\r\n"}}
{"actor":{"display_login":"facelessuser"}}