updated keyword.operator and moved indentation to the left

This commit is contained in:
Builders Brewery 2013-03-30 17:30:41 +01:00
commit 93c57928d3

View file

@ -36,7 +36,7 @@ var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var lslHighlightRules = function() {
var keywordMapper = this.createKeywordMapper({
var keywordMapper = this.createKeywordMapper({
"constant.language": "ACTIVE ALWAYS_RUN|AGENT_ATTACHMENTS|AGENT_AUTOPILOT|" +
"AGENT_AWAY|AGENT_BUSY|AGENT_BY_LEGACY_NAME|AGENT_BY_USERNAME|AGENT_CROUCHING|" +
"AGENT_FLYING|AGENT_IN_AIR|AGENT_LIST_PARCEL|AGENT_LIST_PARCEL_OWNER|" +
@ -307,7 +307,7 @@ var lslHighlightRules = function() {
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
}, {
token : "keyword.operator",
regex : "!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|==|=|!=|=||&&|\\|\\||\\*=|%=|\\+=|\\-="
regex : "!|!=|%|%=|&|&&|<|<=|=|==|>|>=|\\*|\\*=|\\+|\\+=|\\+\\+|\\-|\\-=|\\-\\-|\\/|\\/=|\\||\\|\\||~"
}, {
token : "punctuation.operator",
regex : "\\?|\\:|\\,|\\;|\\."
@ -343,9 +343,9 @@ var lslHighlightRules = function() {
}
]
};
};
};
oop.inherits(lslHighlightRules, TextHighlightRules);
oop.inherits(lslHighlightRules, TextHighlightRules);
exports.lslHighlightRules = lslHighlightRules;
exports.lslHighlightRules = lslHighlightRules;
});