From c83887a87664509bf2ebcaa8b6e44fdf82408c57 Mon Sep 17 00:00:00 2001 From: Arpad Ryszka Date: Sat, 29 Jul 2017 23:05:57 +0200 Subject: [PATCH] fix storing included --- choice.go | 4 ++-- sequence.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/choice.go b/choice.go index 9c78e13..c5634f2 100644 --- a/choice.go +++ b/choice.go @@ -192,9 +192,9 @@ func (p *choiceParser) parse(t Trace, c *context) { c.store.setMatch(from, p.id, to) for _, includedBy := range p.includedBy { - if !c.excluded(from, includedBy) { + if c.excluded(from, includedBy) { t.Out1("storing included", includedBy) - // c.store.setMatch(from, includedBy, to) + c.store.setMatch(from, includedBy, to) } } } diff --git a/sequence.go b/sequence.go index a86cc3b..e41d406 100644 --- a/sequence.go +++ b/sequence.go @@ -227,9 +227,9 @@ func (p *sequenceParser) parse(t Trace, c *context) { } for _, includedBy := range p.includedBy { - if !c.excluded(from, includedBy) { + if c.excluded(from, includedBy) { t.Out1("storing included", includedBy) - // c.store.setMatch(from, includedBy, to) + c.store.setMatch(from, includedBy, to) } }