Super complicated parsing of the gaps. But parsing gaps is actually the only correct way of parsing the new test cases.