From adde939166168918a7177a5a39e093b5c5b1be4f Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 20 Oct 2010 12:29:35 +0200 Subject: [PATCH] also highlight "if" --- src/ace/mode/JavaScriptHighlightRules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ace/mode/JavaScriptHighlightRules.js b/src/ace/mode/JavaScriptHighlightRules.js index 3a2d29b1..6b1ede7f 100644 --- a/src/ace/mode/JavaScriptHighlightRules.js +++ b/src/ace/mode/JavaScriptHighlightRules.js @@ -19,8 +19,8 @@ JavaScriptHighlightRules = function() { var docComment = new DocCommentHighlightRules(); var keywords = lang.arrayToMap( - ("break|case|catch|continue|default|delete|do|else|finally|for|function|\ - if|in|instanceof|new|return|switch|throw|try|typeof|var|while|with").split("|") + ("break|case|catch|continue|default|delete|do|else|finally|for|function|" + + "if|in|instanceof|new|return|switch|throw|try|typeof|var|while|with").split("|") ); var buildinConstants = lang.arrayToMap( @@ -28,8 +28,8 @@ JavaScriptHighlightRules = function() { ); var futureReserved = lang.arrayToMap( - ("class|enum|extends|super|const|export|import|implements|let|private|\ - public|yield|interface|package|protected|static").split("|") + ("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.