added left shift, right shift, bitwise xor to keyword.operator and condensed regex match

This commit is contained in:
Builders Brewery 2013-03-30 18:05:30 +01:00
commit 66ddb8d25b

View file

@ -307,7 +307,7 @@ var keywordMapper = this.createKeywordMapper({
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
}, {
token : "keyword.operator",
regex : "!|!=|%|%=|&|&&|<|<=|=|==|>|>=|\\*|\\*=|\\+|\\+=|\\+\\+|\\-|\\-=|\\-\\-|\\/|\\/=|\\||\\|\\||~"
regex : "[!%<>=*+\\-\\/]=?|<<|>>|&|&&|\\+\\+|\\-\\-|\\||\\|\\||^|~"
}, {
token : "punctuation.operator",
regex : "\\?|\\:|\\,|\\;|\\."