Special regex character . needs to be excaped in t_CPP_DOT, which is used as a regex pattern. This bug was encounterd about 1/5th of the time while using Python 3.5 on input #if !defined(FOO). Since Python 3.6+ dictionaries are order-preserving so this bug never occurred for this particular input with more recent Python versions.
Special regex character
.
needs to be excaped int_CPP_DOT
, which is used as a regex pattern. This bug was encounterd about 1/5th of the time while using Python 3.5 on input#if !defined(FOO)
. Since Python 3.6+ dictionaries are order-preserving so this bug never occurred for this particular input with more recent Python versions.