Correctly ignores =begin and =end

Got to use a flip-flop.