I found that the repro case from #4330 was hanging in applying some of the regexes used in tokenization. These regexes have a few inefficient features:
Nested and adjacent groups instead of a single level; this leads to backtracking
Some of the groups for "normal" characters were missing an exclusion for backslash, which was also leading to backtracking.
Fixes #4330
I found that the repro case from #4330 was hanging in applying some of the regexes used in tokenization. These regexes have a few inefficient features: