Fail on a mismatched in the python and c++ syntax highlighters. And then ignore the rest of the code block to avoid further errors and warnings.