Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing flags not supported #50

Open
jeanas opened this issue Apr 2, 2023 · 0 comments
Open

Removing flags not supported #50

jeanas opened this issue Apr 2, 2023 · 0 comments

Comments

@jeanas
Copy link

jeanas commented Apr 2, 2023

>>> import regexlint
>>> regexlint.Regex().get_parse_tree("(?-i:a)")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jean/repos/regexlint/regexlint/parser.py", line 377, in get_parse_tree
    return cls._get_parse_tree(s, flags, effective_flags)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jean/repos/regexlint/regexlint/parser.py", line 474, in _get_parse_tree
    c = open_stack[-1].children.pop()
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IndexError: pop from empty list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant