public static function unexpectedEnd(Input $definition): self
    {
        $pointer = self::createPointerString($definition->getInput(), $definition->getIndex());

        return new self("Unexpected end of route:\n$pointer");
    }