{"action":"created","issue":{"url":"https://api.github.com/repos/gandm/language-babel/issues/402","repository_url":"https://api.github.com/repos/gandm/language-babel","labels_url":"https://api.github.com/repos/gandm/language-babel/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/gandm/language-babel/issues/402/comments","events_url":"https://api.github.com/repos/gandm/language-babel/issues/402/events","html_url":"https://github.com/gandm/language-babel/issues/402","id":251164405,"number":402,"title":"Function identifiers not colored properly when args on multiple lines","user":{"login":"ooflorent","id":168498,"avatar_url":"https://avatars0.githubusercontent.com/u/168498?v=4","gravatar_id":"","url":"https://api.github.com/users/ooflorent","html_url":"https://github.com/ooflorent","followers_url":"https://api.github.com/users/ooflorent/followers","following_url":"https://api.github.com/users/ooflorent/following{/other_user}","gists_url":"https://api.github.com/users/ooflorent/gists{/gist_id}","starred_url":"https://api.github.com/users/ooflorent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooflorent/subscriptions","organizations_url":"https://api.github.com/users/ooflorent/orgs","repos_url":"https://api.github.com/users/ooflorent/repos","events_url":"https://api.github.com/users/ooflorent/events{/privacy}","received_events_url":"https://api.github.com/users/ooflorent/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-18T07:39:14Z","updated_at":"2017-08-18T07:59:13Z","closed_at":"2017-08-18T07:59:13Z","body":"Arrow function identifiers are not properly highlighted when the arguments are defined on multiple lines.\r\n\r\n<img width=\"188\" alt=\"multiline_arrow\" src=\"https://user-images.githubusercontent.com/168498/29448884-dc5bb9d0-83f8-11e7-9f68-34b758aeecd4.png\">\r\n\r\nReal world example:\r\n```js\r\nexport const createCanvas = (\r\n  width: number,\r\n  height: number,\r\n  pixelRatio: number\r\n): HTMLCanvasElement => {\r\n  const canvas = document.createElement(\"canvas\")\r\n  canvas.width = width * pixelRatio\r\n  canvas.height = height * pixelRatio\r\n  canvas.style.width = width + \"px\"\r\n  canvas.style.height = height + \"px\"\r\n  return canvas\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gandm/language-babel/issues/comments/323287067","html_url":"https://github.com/gandm/language-babel/issues/402#issuecomment-323287067","issue_url":"https://api.github.com/repos/gandm/language-babel/issues/402","id":323287067,"user":{"login":"gandm","id":2313237,"avatar_url":"https://avatars2.githubusercontent.com/u/2313237?v=4","gravatar_id":"","url":"https://api.github.com/users/gandm","html_url":"https://github.com/gandm","followers_url":"https://api.github.com/users/gandm/followers","following_url":"https://api.github.com/users/gandm/following{/other_user}","gists_url":"https://api.github.com/users/gandm/gists{/gist_id}","starred_url":"https://api.github.com/users/gandm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandm/subscriptions","organizations_url":"https://api.github.com/users/gandm/orgs","repos_url":"https://api.github.com/users/gandm/repos","events_url":"https://api.github.com/users/gandm/events{/privacy}","received_events_url":"https://api.github.com/users/gandm/received_events","type":"User","site_admin":false},"created_at":"2017-08-18T07:59:13Z","updated_at":"2017-08-18T07:59:13Z","body":"Yes it should be but it is impossible to do. It's a limitation of TextMate Grammars that they are only allowed to look at a single line and may not look forwards nor go backwards. I don't know it's an arrow function until the function name has passed. Sorry."}}
{"actor":{"display_login":"gandm"}}