vendor/assets/javascripts/codemirror/modes/javascript.js in codemirror-rails-5.1 vs vendor/assets/javascripts/codemirror/modes/javascript.js in codemirror-rails-5.2

- old
+ new

@@ -583,10 +583,14 @@ return pass(importSpec, maybeFrom); } function importSpec(type, value) { if (type == "{") return contCommasep(importSpec, "}"); if (type == "variable") register(value); - return cont(); + if (value == "*") cx.marked = "keyword"; + return cont(maybeAs); + } + function maybeAs(_type, value) { + if (value == "as") { cx.marked = "keyword"; return cont(importSpec); } } function maybeFrom(_type, value) { if (value == "from") { cx.marked = "keyword"; return cont(expression); } } function arrayLiteral(type) {