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

3.0 regression from 2.4.7 - regex generated for QuotedString #355

Closed
ptmcg opened this issue Jan 9, 2022 · 0 comments
Closed

3.0 regression from 2.4.7 - regex generated for QuotedString #355

ptmcg opened this issue Jan 9, 2022 · 0 comments

Comments

@ptmcg
Copy link
Member

ptmcg commented Jan 9, 2022

>>> from pyparsing import QuotedString
>>> QuotedString('*/',endQuoteChar='/*')                                                                                                  
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ptmcg/.virtualenvs/py37/lib/python3.7/site-packages/pyparsing/core.py", line 3163, in __init__
    "invalid pattern {!r} passed to Regex".format(self.pattern)
ValueError: invalid pattern '\\*/(?:(?:(?:/(?!*)))|(?:[^/\\n\\r]))*/\\*' passed to Regex

>>> from pyparsing_247 import QuotedString
>>> QuotedString('*/',endQuoteChar='/*')                                                                                                  
quoted string, starting with */ ending with /*

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