Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 5cd53ec

Browse files
mathiasbynensmikesamuel
authored andcommitted
Add import and of (for-of) to JSCRIPT_KEYWORDS (#530)
1 parent 05ad1b7 commit 5cd53ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prettify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ var prettyPrint;
197197
"throw,true,try,unless,until,when,while,yes";
198198
var JSCRIPT_KEYWORDS = [COMMON_KEYWORDS,
199199
"abstract,async,await,constructor,debugger,enum,eval,export,function," +
200-
"get,implements,instanceof,interface,let,null,set,undefined,var,with," +
201-
"yield,Infinity,NaN"];
200+
"get,import,implements,instanceof,interface,let,null,of,set,undefined," +
201+
"var,with,yield,Infinity,NaN"];
202202
var PERL_KEYWORDS = "caller,delete,die,do,dump,elsif,eval,exit,foreach,for," +
203203
"goto,if,import,last,local,my,next,no,our,print,package,redo,require," +
204204
"sub,undef,unless,until,use,wantarray,while,BEGIN,END";

0 commit comments

Comments
 (0)