Added support for binary operators.

This commit is contained in:
John Kane 2011-09-30 00:41:45 +01:00
commit 65afcb20a3
2 changed files with 11 additions and 2 deletions

View file

@ -52,7 +52,7 @@ var PowershellHighlightRules = function() {
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
}, {
token : "keyword.operator",
regex : "eq|ne|ge|gt|lt|le|like|notlike|match|notmatch|replace"
regex : "\\-(?:" + "eq|ne|ge|gt|lt|le|like|notlike|match|notmatch|replace" + ")"
}, {
token : "lparen",
regex : "[[({]"