From ddbdc677e3b21dd0838bddfb9e99078b74a7850a Mon Sep 17 00:00:00 2001 From: fofolee Date: Mon, 15 Jun 2020 18:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E6=B1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/plugins/codemirror/addon/hint/javascript-hint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/plugins/codemirror/addon/hint/javascript-hint.js b/src/assets/plugins/codemirror/addon/hint/javascript-hint.js index 7171bcf..7f78e66 100644 --- a/src/assets/plugins/codemirror/addon/hint/javascript-hint.js +++ b/src/assets/plugins/codemirror/addon/hint/javascript-hint.js @@ -117,7 +117,7 @@ "lastIndexOf every some filter forEach map reduce reduceRight ").split(" "); var funcProps = "prototype apply call bind".split(" "); var javascriptKeywords = ("break case catch class const continue debugger default delete do else export extends false finally for function " + - "if in import instanceof new null return super switch this throw true try typeof var void while with yield await async").split(" "); + "if in import instanceof new null return super switch this throw true try typeof var void while with yield await async then").split(" "); var coffeescriptKeywords = ("and break catch class continue delete do else extends false finally for" + "if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" "); @@ -140,7 +140,7 @@ JSON: JSON, String: String, Array: Array, - console: {log: ()=>{}} + console: { log: () => { }, error: () => { }} } function forAllProps(obj, callback) {