{"action":"closed","issue":{"url":"https://api.github.com/repos/pangloss/vim-javascript/issues/525","repository_url":"https://api.github.com/repos/pangloss/vim-javascript","labels_url":"https://api.github.com/repos/pangloss/vim-javascript/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/pangloss/vim-javascript/issues/525/comments","events_url":"https://api.github.com/repos/pangloss/vim-javascript/issues/525/events","html_url":"https://github.com/pangloss/vim-javascript/issues/525","id":163006891,"number":525,"title":"do expression support","user":{"login":"tomxtobin","id":28852,"avatar_url":"https://avatars.githubusercontent.com/u/28852?v=3","gravatar_id":"","url":"https://api.github.com/users/tomxtobin","html_url":"https://github.com/tomxtobin","followers_url":"https://api.github.com/users/tomxtobin/followers","following_url":"https://api.github.com/users/tomxtobin/following{/other_user}","gists_url":"https://api.github.com/users/tomxtobin/gists{/gist_id}","starred_url":"https://api.github.com/users/tomxtobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomxtobin/subscriptions","organizations_url":"https://api.github.com/users/tomxtobin/orgs","repos_url":"https://api.github.com/users/tomxtobin/repos","events_url":"https://api.github.com/users/tomxtobin/events{/privacy}","received_events_url":"https://api.github.com/users/tomxtobin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"amadeus","id":83376,"avatar_url":"https://avatars.githubusercontent.com/u/83376?v=3","gravatar_id":"","url":"https://api.github.com/users/amadeus","html_url":"https://github.com/amadeus","followers_url":"https://api.github.com/users/amadeus/followers","following_url":"https://api.github.com/users/amadeus/following{/other_user}","gists_url":"https://api.github.com/users/amadeus/gists{/gist_id}","starred_url":"https://api.github.com/users/amadeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amadeus/subscriptions","organizations_url":"https://api.github.com/users/amadeus/orgs","repos_url":"https://api.github.com/users/amadeus/repos","events_url":"https://api.github.com/users/amadeus/events{/privacy}","received_events_url":"https://api.github.com/users/amadeus/received_events","type":"User","site_admin":false},"assignees":[{"login":"amadeus","id":83376,"avatar_url":"https://avatars.githubusercontent.com/u/83376?v=3","gravatar_id":"","url":"https://api.github.com/users/amadeus","html_url":"https://github.com/amadeus","followers_url":"https://api.github.com/users/amadeus/followers","following_url":"https://api.github.com/users/amadeus/following{/other_user}","gists_url":"https://api.github.com/users/amadeus/gists{/gist_id}","starred_url":"https://api.github.com/users/amadeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amadeus/subscriptions","organizations_url":"https://api.github.com/users/amadeus/orgs","repos_url":"https://api.github.com/users/amadeus/repos","events_url":"https://api.github.com/users/amadeus/events{/privacy}","received_events_url":"https://api.github.com/users/amadeus/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-06-29T19:28:36Z","updated_at":"2016-07-08T17:48:11Z","closed_at":"2016-07-08T17:48:11Z","body":"[`do` expressions][do-expressions] aren't (quite) supported.\r\n\r\nThey sort-of work because of support for `do/while` loops, but the highlighting breaks down in certain cases.\r\n\r\nIn particular, they're highlighted incorrectly inside array and object literals.\r\n\r\nExamples:\r\n\r\n```javascript\r\nconst obj = {\r\n  bar: do { // \"do\" gets jsObjectValue\r\n    if (baz) { // \"if\" gets jsObjectFuncName\r\n      'hi'\r\n    } else {\r\n      'bye'\r\n    }\r\n  },\r\n} // jsParensError\r\n\r\nconst arr = [\r\n  do { // \"do\" gets jsBracket\r\n    if (baz) { // \"if\" gets jsObjectFuncName\r\n      'hi'\r\n    } else {\r\n      'bye'\r\n    }\r\n  }, // jsParensError\r\n]\r\n```\r\n\r\nGranted, `do` expressions are at stage 0, but Babel does support them with an official plugin, and I've seen support added to `vim-javascript` for other early-stage syntax.\r\n\r\n[do-expressions]: http://babeljs.io/docs/plugins/transform-do-expressions/\r\n"}}
{"actor":{"display_login":"amadeus"}}