Skip to content

Commit 749409d

Browse files
tmcwmarijnh
authored andcommitted
[javascript-hint addon] Add ECMAScript 2015 keywords
This explicitly adds keywords that are already syntax-highlighted and correctly parsed by CodeMirror already in the JavaScript mode.
1 parent ed9278c commit 749409d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/hint/javascript-hint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " +
9393
"lastIndexOf every some filter forEach map reduce reduceRight ").split(" ");
9494
var funcProps = "prototype apply call bind".split(" ");
95-
var javascriptKeywords = ("break case catch continue debugger default delete do else false finally for function " +
96-
"if in instanceof new null return switch throw true try typeof var void while with").split(" ");
95+
var javascriptKeywords = ("break case catch class const continue debugger default delete do else export extends false finally for function " +
96+
"if in import instanceof new null return super switch this throw true try typeof var void while with yield").split(" ");
9797
var coffeescriptKeywords = ("and break catch class continue delete do else extends false finally for " +
9898
"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(" ");
9999

0 commit comments

Comments
 (0)