fold away lines that don't match a given pattern