add more future reserved words to the JS highlighter
This commit is contained in:
parent
30e3841857
commit
761209c4dd
1 changed files with 11 additions and 2 deletions
|
|
@ -27,10 +27,19 @@ JavaScriptHighlightRules = function() {
|
||||||
("true|false|null|undefined|Infinity|NaN|undefined").split("|")
|
("true|false|null|undefined|Infinity|NaN|undefined").split("|")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// ES3 future reserved
|
||||||
var futureReserved = lang.arrayToMap(
|
var futureReserved = lang.arrayToMap(
|
||||||
("class|enum|extends|super|const|export|import|implements|let|private|" +
|
("abstract|boolean|byte|char|class|const|enum|export|extends|final|" +
|
||||||
"public|yield|interface|package|protected|static").split("|")
|
"float|goto|implements|int|interface|long|native|package|private|" +
|
||||||
|
"protected|short|static|super|synchronized|throws|transient|volatile" +
|
||||||
|
"double|import|public").split("|")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// ES5 future reserved
|
||||||
|
// var futureReserved = lang.arrayToMap(
|
||||||
|
// ("class|enum|extends|super|const|export|import|implements|let|private|" +
|
||||||
|
// "public|yield|interface|package|protected|static").split("|")
|
||||||
|
// );
|
||||||
|
|
||||||
// regexp must not have capturing parentheses. Use (?:) instead.
|
// regexp must not have capturing parentheses. Use (?:) instead.
|
||||||
// regexps are ordered -> the first match is used
|
// regexps are ordered -> the first match is used
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue