Summary: Update CodeMirror to support async/await keyword and other ES2017 features Support for new ES2017 features in JavaScript was added in June-August: https://github.com/codemirror/CodeMirror/issues/4085 https://github.com/codemirror/CodeMirror/issues/4152 All of these seem useful / relevant: > cbbd941 [javascript mode] Improve handling of async in object literal > b3482bb [javascript mode] Fix a bug in parsing of arrow function with no args > 5e29ee6 [javascript mode] Fix bug in array literal parsing > 31eb1b2 [javascript mode] Handle trailing commas better > 2319665 [javascript mode] Improve support for async keyword > b2c1116 [javascript mode] Support async and await > 0d73c4b [javascript mode] Allow trailing comma in object destructure This would highlight the keywords and potentially improve other syntax highlighting surrounding new syntax.
Created attachment 297485 [details] [PATCH] Proposed Fix Tested viewing resources, styles sidebar, syntax highlighting of JavaScript/CSS/HTML, pretty printing, inline markers (errors/warnings), breakpoints, and some other general testing.
<rdar://problem/29744608>
Comment on attachment 297485 [details] [PATCH] Proposed Fix rs=me
https://trac.webkit.org/changeset/210032