fix for a few of the es5 keywords
This commit is contained in:
parent
ebe4117945
commit
2d7326f1c9
1 changed files with 5 additions and 3 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
*
|
*
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
* Fabian Jakobs <fabian AT ajax DOT org>
|
* Fabian Jakobs <fabian AT ajax DOT org>
|
||||||
|
* Mihai Sucan <mihai DOT sucan AT gmail DOT com>
|
||||||
*
|
*
|
||||||
* Alternatively, the contents of this file may be used under the terms of
|
* Alternatively, the contents of this file may be used under the terms of
|
||||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||||
|
|
@ -48,7 +49,8 @@ var JavaScriptHighlightRules = function() {
|
||||||
|
|
||||||
var keywords = lang.arrayToMap(
|
var keywords = lang.arrayToMap(
|
||||||
("break|case|catch|continue|default|delete|do|else|finally|for|function|" +
|
("break|case|catch|continue|default|delete|do|else|finally|for|function|" +
|
||||||
"if|in|instanceof|new|return|switch|throw|try|typeof|var|while|with").split("|")
|
"if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|" +
|
||||||
|
"const|yield|import|get|set").split("|")
|
||||||
);
|
);
|
||||||
|
|
||||||
var buildinConstants = lang.arrayToMap(
|
var buildinConstants = lang.arrayToMap(
|
||||||
|
|
@ -56,8 +58,8 @@ var JavaScriptHighlightRules = function() {
|
||||||
);
|
);
|
||||||
|
|
||||||
var futureReserved = lang.arrayToMap(
|
var futureReserved = lang.arrayToMap(
|
||||||
("class|enum|extends|super|const|export|import|implements|let|private|" +
|
("class|enum|extends|super|export|implements|private|" +
|
||||||
"public|yield|interface|package|protected|static").split("|")
|
"public|interface|package|protected|static").split("|")
|
||||||
);
|
);
|
||||||
|
|
||||||
// regexp must not have capturing parentheses. Use (?:) instead.
|
// regexp must not have capturing parentheses. Use (?:) instead.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue