def _parse_pages_with_tags(token):
    tag_name, arg = _extract_tag_content(token)

    m = re.search(r"""
        (.*?)                                   # taglist or varname

        (\s+ order                              # optional order clause
            \s+(alphabetical|chronological)     # order combinations
        )*

        (\s+ limit \s+ (\d+))*                  # optional limit clause

        \s+ as \s+ (\w+) \s*                    # collector variable
    """, arg, flags=re.VERBOSE)

    if not m:
        raise template.TemplateSyntaxError(
            tag_name % "%r tag had invalid arguments"
        )
    tags, _, ordering, _, limit, var_name = m.groups()

    return parsed_tags(tags), ordering, limit and int(limit), var_name
dataset/ETHPy150Open pbs/django-cms-pagetags/pagetags/templatetags/page_tags.py/_parse_pages_with_tags/swapped operands of `%`