{"action":"opened","issue":{"url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4451","repository_url":"https://api.github.com/repos/codemirror/CodeMirror","labels_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4451/labels{/name}","comments_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4451/comments","events_url":"https://api.github.com/repos/codemirror/CodeMirror/issues/4451/events","html_url":"https://github.com/codemirror/CodeMirror/issues/4451","id":196545878,"number":4451,"title":"[javascript mode] `as` and `from` not syntax highlighted inside some import and export statements","user":{"login":"JosephPecoraro","id":11351,"avatar_url":"https://avatars.githubusercontent.com/u/11351?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephPecoraro","html_url":"https://github.com/JosephPecoraro","followers_url":"https://api.github.com/users/JosephPecoraro/followers","following_url":"https://api.github.com/users/JosephPecoraro/following{/other_user}","gists_url":"https://api.github.com/users/JosephPecoraro/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephPecoraro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephPecoraro/subscriptions","organizations_url":"https://api.github.com/users/JosephPecoraro/orgs","repos_url":"https://api.github.com/users/JosephPecoraro/repos","events_url":"https://api.github.com/users/JosephPecoraro/events{/privacy}","received_events_url":"https://api.github.com/users/JosephPecoraro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-19T23:19:22Z","updated_at":"2016-12-19T23:19:22Z","closed_at":null,"body":"CodeMirror at d756ea1 does not syntax highlight the `as` and `from` in some [import statements](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Importing_defaults) that capture the default value. Likewise it does not syntax highlight the `as` in [named exports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export):\r\n\r\n```js\r\nimport a, {a as A} from \"module\";\r\nimport x, * as A from \"module\";\r\n\r\nexport {x as X};\r\nexport {x as X, a as A};\r\nexport {x as A} from \"module\";\r\n```\r\n\r\nIt does however handle both in the most common case, which is great:\r\n\r\n```js\r\nimport {a as A} from \"module\";\r\n```"}}
{"actor":{"display_login":"JosephPecoraro"}}