Added in non-comparison operators i.e. &

This commit is contained in:
John Kane 2011-09-30 01:13:45 +01:00
commit 9cb8889801

View file

@ -13,6 +13,7 @@ var PowershellHighlightRules = function() {
); );
var builtinFunctions = lang.arrayToMap( var builtinFunctions = lang.arrayToMap(
// TODO: fill out this list
("Write-Host").split("|") ("Write-Host").split("|")
); );
@ -65,6 +66,9 @@ var PowershellHighlightRules = function() {
}, { }, {
token : "keyword.operator", token : "keyword.operator",
regex : "\\-(?:" + binaryOperatorsRe + ")" regex : "\\-(?:" + binaryOperatorsRe + ")"
}, {
token : "keyword.operator",
regex : "&|\\*|\\+|\\-|\\=|\\+=|\\-="
}, { }, {
token : "lparen", token : "lparen",
regex : "[[({]" regex : "[[({]"