consume code directly when \end and \begin are together