|
@ -132,7 +132,7 @@ Ruler.prototype.after = function (name, fn, altNames) { |
|
|
if (index === -1) { |
|
|
if (index === -1) { |
|
|
throw new Error('Parser rule not found: ' + name); |
|
|
throw new Error('Parser rule not found: ' + name); |
|
|
} |
|
|
} |
|
|
this.rules.splice(index + 1, 0, fn); |
|
|
this.rules.splice(index + 1, 0, rule); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.compile(); |
|
|
this.compile(); |
|
|