we-like-parsers / cpython

Here we work on integrating pegen into CPython; use branch 'pegen'
https://github.com/gvanrossum/pegen
Other
1 stars 0 forks source link

Fix infinite loop when displaying warnings #202

Closed pablogsal closed 1 year ago

pablogsal commented 2 years ago

Fixes: #201

pablogsal commented 1 year ago

Hummm, we need to also modify the existing warning mechanism because it also triggers the problem. Run for example:

0b1and x
pablogsal commented 1 year ago

Lol, this happens in main as well!

pablogsal commented 1 year ago

Well, I am merging this and making another PR against CPython :P

pablogsal commented 1 year ago

Let me bisect first to see how this got introduced

lysnikolaou commented 1 year ago

Yup, let's merge this one as-is and I guess add the same check in parser_warn in an upstream PR?