fix embedding of rules with push/pop

This commit is contained in:
nightwing 2013-05-07 21:45:18 +04:00
commit e0334c6f6c

View file

@ -56,7 +56,11 @@ var TextHighlightRules = function() {
for (var i = 0; i < state.length; i++) {
var rule = state[i];
if (rule.next) {
rule.next = prefix + rule.next;
if (typeof rule.next != "string")
rule.nextState = prefix + rule.nextState;
else
rule.next = prefix + rule.next;
}
}
this.$rules[prefix + key] = state;