stred

Stred: Streaming Tree Editor. Like sed but for JSON
git clone http://shtanton.xyz/git/repo/stred
Log | Files | Refs

commit ebd4f72fb2d1968ac9c13e5b5e743d265a9df6ca
parent 61a32b2d3266e9c3661aef6842ba4a1913da2df0
Author: Charlie Stanton <charlie@shtanton.xyz>
Date:   Wed, 15 Mar 2023 20:58:07 +0000

Fix bug where SubexStoreState is sometimes not a pointer

Diffstat:
Msubex/subexstate.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subex/subexstate.go b/subex/subexstate.go @@ -41,7 +41,7 @@ func (state SubexStoreState) eat(store Store, char walk.Atom) (nextStates []Sube nextMatchStates := state.match.eat(store.clone(), char) for _, matchState := range nextMatchStates { nextStates = append(nextStates, SubexBranch { - state: SubexStoreState { + state: &SubexStoreState { match: matchState.state, slot: state.slot, next: state.next,