Browse Source

Fixed `Ruler.after()` method

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
ab00db7c24
  1. 7
      CHANGELOG.md
  2. 2
      lib/ruler.js

7
CHANGELOG.md

@ -1,3 +1,10 @@
1.1.1 / WIP
------------------
- Fixed `Ruler.after()` method.
- Simplified loose/tight rendering.
1.1.0 / 2014-10-20 1.1.0 / 2014-10-20
------------------ ------------------

2
lib/ruler.js

@ -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();

Loading…
Cancel
Save