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) } }