red highlight of reserved keywords is too bright
This commit is contained in:
parent
3f8aa00d23
commit
f6e961ed75
1 changed files with 4 additions and 6 deletions
|
|
@ -49,17 +49,15 @@ var JavaScriptHighlightRules = function() {
|
|||
"isNaN|parseFloat|parseInt|" +
|
||||
"JSON|Math|" + // Other
|
||||
"this|arguments|prototype|window|document" , // Pseudo
|
||||
"invalid.deprecated":
|
||||
"__parent__|__count__|escape|unescape|with|__proto__",
|
||||
"keyword":
|
||||
"const|yield|import|get|set|" +
|
||||
"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":
|
||||
"const|let|var|function",
|
||||
"invalid.illegal":
|
||||
"class|enum|extends|super|export|implements|private|" +
|
||||
"public|interface|package|protected|static",
|
||||
"constant.language":
|
||||
"null|Infinity|NaN|undefined",
|
||||
"support.function":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue