fix(util/sexpr/format): LINE is a token separator

This commit is contained in:
Sebastian Ullrich 2015-10-01 02:21:41 +02:00 committed by Leonardo de Moura
parent d1b5031dbd
commit 0fdae28439

View file

@ -182,10 +182,11 @@ std::tuple<sexpr, sexpr const *> format::separate_tokens(sexpr const & s, sexpr
) const {
switch (sexpr_kind(s)) {
case format_kind::NIL:
case format_kind::LINE:
case format_kind::COLOR_BEGIN:
case format_kind::COLOR_END:
return std::make_tuple(s, last);
case format_kind::LINE:
return std::make_tuple(s, nullptr);
case format_kind::COMPOSE:
case format_kind::FLAT_COMPOSE:
{