{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/499","repository_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage","labels_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/499/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/499/events","html_url":"https://github.com/Microsoft/TypeScript-TmLanguage/issues/499","id":249736085,"number":499,"title":"Javascript syntax highlighting fails with ES6 arrow functions with arguments split over multiple lines, if arguments contain default array or string","user":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-11T20:11:58Z","updated_at":"2017-09-22T20:59:32Z","closed_at":"2017-09-13T20:47:26Z","author_association":"CONTRIBUTOR","body":"_From @bjeanes on August 11, 2017 10:35_\n\n- VSCode Version: Code 1.15.0 (8b95971d8cccd3afd86b35d4a0e098c189294ff2, 2017-08-09T20:06:21.685Z)\r\n- OS Version: Darwin x64 16.7.0\r\n- Extensions: \r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\nEditorConfig|Edi|0.9.4\r\nbeautify|Hoo|1.1.1\r\nIonide-fsharp|Ion|2.32.0\r\nvscode-docker|Pet|0.0.16\r\nhtml-css-class-completion|Zig|1.8.0\r\nproject-manager|ale|0.19.0\r\nvscode-database|baj|1.2.0\r\npath-intellisense|chr|1.4.2\r\nvscode-eslint|dba|1.2.11\r\ngithistory|don|0.2.3\r\npgsql|dou|0.0.8\r\ngitlens|eam|4.3.3\r\ncrystal-lang|fau|0.2.17\r\nauto-close-tag|for|0.4.3\r\nhaml|kar|0.7.2\r\ncomment|kar|4.0.8\r\nGo|luk|0.6.63\r\nvscode-elixir|mjm|0.5.1\r\ndebugger-for-chrome|msj|3.1.7\r\nRuby|reb|0.13.0\r\nRustyCode|sav|0.19.1\r\nvscode-parinfer|sha|0.6.1\r\nvim|vsc|0.9.0\r\nvscode-todo-highlight|way|0.5.8\r\nJavaScriptSnippets|xab|1.4.1\r\n\r\n(2 theme extensions excluded)\r\n\r\n\r\n---\r\n\r\nSteps to Reproduce:\r\n\r\n1. Just paste this code into a new buffer and configure it to be JavaScript:\r\n\r\n    ``` javascript\r\n    const fn = ({\r\n      arg = [],\r\n    }) => {\r\n      return \"This line should be highlighted correctly\";\r\n    }\r\n    ```\r\n\r\n2. Compare highlighting between:\r\n\r\n    1. Code above _(incorrect highlighting)_:\r\n        ![2017-08-11 at 8 30 pm](https://user-images.githubusercontent.com/2560/29209859-106572cc-7ed4-11e7-9d7e-70139a9526ad.png)\r\n\r\n\r\n    2. Arguments on single line _(correct highlighting)_:\r\n        ![2017-08-11 at 8 32 pm](https://user-images.githubusercontent.com/2560/29209907-46e9ec2e-7ed4-11e7-8023-f024073a1aab.png)\r\n\r\n    3. No `[]` or `\"string\"` as default argument value _(correct highlighting)_:\r\n        ![2017-08-11 at 8 33 pm](https://user-images.githubusercontent.com/2560/29209918-593792aa-7ed4-11e7-8162-63a5c98f3cac.png)\r\n\r\nThis example is obviously simplified from where I encountered it. Highlighting resumed midway through my function after a ternary expression (the `:` specifically). I could replicate the behaviour with either a string or array default value (empty or non-empty did not matter).\r\n\r\nReproduces without extensions: *Yes*\n\n_Copied from original issue: Microsoft/vscode#32310_"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/comments/331559203","html_url":"https://github.com/Microsoft/TypeScript-TmLanguage/issues/499#issuecomment-331559203","issue_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/499","id":331559203,"user":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T20:59:32Z","updated_at":"2017-09-22T20:59:32Z","author_association":"CONTRIBUTOR","body":"The fix is also already in VSCode insiders: https://code.visualstudio.com/insiders/"}}
{"actor":{"display_login":"mjbvz"}}