fix embedding of rules with push/pop
This commit is contained in:
parent
2adc4c7c96
commit
e0334c6f6c
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue