diff --git a/choice.go b/choice.go index 077a1c8..bc9b549 100644 --- a/choice.go +++ b/choice.go @@ -160,11 +160,6 @@ func (p *choiceParser) parse(c *context) { foundMatch = false optionIndex = 0 - // TODO: - // - avoid double parsing by setting first-from-store in the context, prepare in advance to - // know whether it can be it's own item - // - it is also important to figure why disabling the failed options breaks the parsing - for optionIndex < len(p.options) { p.options[optionIndex].parse(c) optionIndex++ diff --git a/sequence.go b/sequence.go index 6d50f20..ada4ccd 100644 --- a/sequence.go +++ b/sequence.go @@ -192,7 +192,6 @@ func (p *sequenceParser) parse(c *context) { var parsed bool for itemIndex < len(p.items) { - // TODO: test this f(g()) p.items[itemIndex].parse(c) if !c.matchLast { if currentCount < p.ranges[itemIndex][0] {