Packrat parsing seems to interfere with the indentedBlock parser. Some
legitimate input is no longer recognized when packrat parsing is
A script to demonstrate the problem is here:
When line 7 is uncommented an exception is raised while parsing the
3rd example 'program'.
Maybe I'm using indentedBlock somehow wrongly?
A patch is attached to the bug report, that solves this bug for me. It adds a data attribute "self.noPackrat" to "ParserElement". It switches off packrat parsing for this specific parser when it is set to True. "ParserElement._parseCache" is modified to respect the new attribute.