diff --git a/CHANGELOG.md b/CHANGELOG.md index 84122f2f..8f5ffbe5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Changelog All notable changes to this project will be documented in this file. -## 0.4.1 latest - ?? +## 0.4.1 - 2019-04-14 +- Squash some bugs +- Peg patterns can now make captures in any position in a grammar. - Add color to repl output - Add array/remove function - Add meson build support diff --git a/src/core/peg.c b/src/core/peg.c index 1866ab8d..72e6c67b 100644 --- a/src/core/peg.c +++ b/src/core/peg.c @@ -318,7 +318,7 @@ tail: s->mode = oldmode; if (!result) return NULL; Janet cap = janet_stringv(s->scratch->data + cs.scratch, - s->scratch->count - cs.scratch); + s->scratch->count - cs.scratch); cap_load(s, cs); pushcap(s, cap, tag); return result;