diff --git a/lib/ace/mode/jsx_highlight_rules.js b/lib/ace/mode/jsx_highlight_rules.js index 07e6aaa3..dc7c8253 100644 --- a/lib/ace/mode/jsx_highlight_rules.js +++ b/lib/ace/mode/jsx_highlight_rules.js @@ -6,11 +6,11 @@ define(function(require, exports, module) { var JsxHighlightRules = function() { var keywords = lang.arrayToMap( - ("break|do|instanceof|typeof|case|else|new|var|catch|finally|return|void|continue|for|switch|while|function|this|" + + ("break|do|instanceof|typeof|case|else|new|var|catch|finally|return|void|continue|for|switch|default|while|function|this|" + "if|throw|" + "delete|in|try|" + - "class|extends|super|import|implements|interface|static|" + - "number|int|string|boolean|" + + "class|extends|super|import|from|into|implements|interface|static|mixin|override|abstract|final|" + + "number|int|string|boolean|variant|" + "log|assert").split("|") ); @@ -22,7 +22,7 @@ define(function(require, exports, module) { ("debugger|with|" + "const|export|" + "let|private|public|yield|protected|" + - "extern|native|as|operator").split("|") + "extern|native|as|operator|__fake__|__readonly__").split("|") ); var identifierRe = "[a-zA-Z_][a-zA-Z0-9_]*\\b"; @@ -70,7 +70,7 @@ define(function(require, exports, module) { return "variable.language"; else if (value == "function") return "storage.type"; - else if (keywords.hasOwnProperty(value)) + else if (keywords.hasOwnProperty(value) || reserved.hasOwnProperty(value)) return "keyword"; else if (buildinConstants.hasOwnProperty(value)) return "constant.language";