Merge pull request #1090 from ajaxorg/highlighting/js
red highlight of reserved keywords is too bright
This commit is contained in:
commit
d96cbba3c1
1 changed files with 4 additions and 6 deletions
|
|
@ -49,17 +49,15 @@ var JavaScriptHighlightRules = function() {
|
||||||
"isNaN|parseFloat|parseInt|" +
|
"isNaN|parseFloat|parseInt|" +
|
||||||
"JSON|Math|" + // Other
|
"JSON|Math|" + // Other
|
||||||
"this|arguments|prototype|window|document" , // Pseudo
|
"this|arguments|prototype|window|document" , // Pseudo
|
||||||
"invalid.deprecated":
|
|
||||||
"__parent__|__count__|escape|unescape|with|__proto__",
|
|
||||||
"keyword":
|
"keyword":
|
||||||
"const|yield|import|get|set|" +
|
"const|yield|import|get|set|" +
|
||||||
"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|let|var|while|with|debugger",
|
"if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
|
||||||
|
// invalid or reserved
|
||||||
|
"__parent__|__count__|escape|unescape|with|__proto__|" +
|
||||||
|
"class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
|
||||||
"storage.type":
|
"storage.type":
|
||||||
"const|let|var|function",
|
"const|let|var|function",
|
||||||
"invalid.illegal":
|
|
||||||
"class|enum|extends|super|export|implements|private|" +
|
|
||||||
"public|interface|package|protected|static",
|
|
||||||
"constant.language":
|
"constant.language":
|
||||||
"null|Infinity|NaN|undefined",
|
"null|Infinity|NaN|undefined",
|
||||||
"support.function":
|
"support.function":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue