fix storing included

This commit is contained in:
Arpad Ryszka 2017-07-29 23:05:57 +02:00
parent 3aa2d9a6b0
commit c83887a876
2 changed files with 4 additions and 4 deletions

View File

@ -192,9 +192,9 @@ func (p *choiceParser) parse(t Trace, c *context) {
c.store.setMatch(from, p.id, to) c.store.setMatch(from, p.id, to)
for _, includedBy := range p.includedBy { for _, includedBy := range p.includedBy {
if !c.excluded(from, includedBy) { if c.excluded(from, includedBy) {
t.Out1("storing included", includedBy) t.Out1("storing included", includedBy)
// c.store.setMatch(from, includedBy, to) c.store.setMatch(from, includedBy, to)
} }
} }
} }

View File

@ -227,9 +227,9 @@ func (p *sequenceParser) parse(t Trace, c *context) {
} }
for _, includedBy := range p.includedBy { for _, includedBy := range p.includedBy {
if !c.excluded(from, includedBy) { if c.excluded(from, includedBy) {
t.Out1("storing included", includedBy) t.Out1("storing included", includedBy)
// c.store.setMatch(from, includedBy, to) c.store.setMatch(from, includedBy, to)
} }
} }