From 75271425491a5c0b6d5b56b18de6cc9798ac7b34 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 13 Apr 2019 19:32:31 -0400 Subject: [PATCH] Prepare for 0.4.1 release --- CHANGELOG.md | 4 +++- src/core/peg.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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;