From b91cef6ff1383393c42049d770278b08397c0d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 18 May 2021 15:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0js=E8=AF=AD=E6=B3=95=E7=9D=80?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/code/colorful.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code/colorful.js b/src/code/colorful.js index 793f78e..171c827 100644 --- a/src/code/colorful.js +++ b/src/code/colorful.js @@ -10,7 +10,7 @@ const TAG_END_EXP = /<\/([\w\-]+)>/g const TAG_ATTR_EXP = /[@a-zA-Z\-.]+=(["'])[^"]+\1|[@a-zA-Z\-.]+=[a-zA-Z0-9]+|[@a-zA-Z\-.]+/g const TAG_CM_EXP = //g const SCRIPT_TAG = /(]*?>)([\w\W]*?)(<\/script>)/g -const KEYWOWRD1 = /\b(var|const|let|function|for|switch|with|if|else|export|import|async|await|break|continue|return|class|try|catch|throw|new|while|this|super|default|case|debugger|delete|do|goto|in|public|private|protected|package|typeof|void)\b/g +const KEYWOWRD1 = /\b(var|const|let|function|for|switch|with|if|else|export|import|async|await|break|continue|return|class|try|catch|throw|new|while|this|super|default|case|debugger|delete|do|goto|in|static|get|set|public|private|protected|package|typeof|void)\b/g const KEYWOWRD2 = /\b\s(=|-|\+|\/|\*|<|>|%)\s\b/g const KEYWOWRD3 = /(\+\=|-=|\/=|\*=|--|\+\+|==|===)/g const BUILDIN1 = /\b(null|undefined|true|false|NaN|Infinity)\b/g