From 9cb88898016c9688e7538a6ccee7fd21efd75713 Mon Sep 17 00:00:00 2001 From: John Kane Date: Fri, 30 Sep 2011 01:13:45 +0100 Subject: [PATCH] Added in non-comparison operators i.e. & --- lib/ace/mode/powershell_highlight_rules.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ace/mode/powershell_highlight_rules.js b/lib/ace/mode/powershell_highlight_rules.js index e1caf7c3..bce69c3d 100644 --- a/lib/ace/mode/powershell_highlight_rules.js +++ b/lib/ace/mode/powershell_highlight_rules.js @@ -13,6 +13,7 @@ var PowershellHighlightRules = function() { ); var builtinFunctions = lang.arrayToMap( + // TODO: fill out this list ("Write-Host").split("|") ); @@ -65,6 +66,9 @@ var PowershellHighlightRules = function() { }, { token : "keyword.operator", regex : "\\-(?:" + binaryOperatorsRe + ")" + }, { + token : "keyword.operator", + regex : "&|\\*|\\+|\\-|\\=|\\+=|\\-=" }, { token : "lparen", regex : "[[({]"