You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pygments backend is generating regex with unescaped symbol #477
I have a grammar (a basic language) that have ^ as an operator. The generated code for the operators on the pygments code include this symbol unescaped, and the generated highlighter is locking at 100% cpu usage because of this. Escaping the symbol solves the lock.
Other symbols are being correctly escaped, it appears that is only ^ that is not being escaped.
Activity
andreasabel commentedon Mar 20, 2024
Should
^be added here then?bnfc/source/src/BNFC/Backend/Pygments.hs
Line 160 in 28a41fc
We need a self-contained reproducer (that will go into the testsuite) if we want to fix this.
praduca commentedon Mar 30, 2024
Can calc.cf be expanded and used? something like this
katrinafyi commentedon Feb 23, 2026
Also has the same problem with
$Commelina commentedon Mar 13, 2026
Fixed by #547.