fix(util/sexpr/format): LINE is a token separator
This commit is contained in:
parent
d1b5031dbd
commit
0fdae28439
1 changed files with 2 additions and 1 deletions
|
@ -182,10 +182,11 @@ std::tuple<sexpr, sexpr const *> format::separate_tokens(sexpr const & s, sexpr
|
||||||
) const {
|
) const {
|
||||||
switch (sexpr_kind(s)) {
|
switch (sexpr_kind(s)) {
|
||||||
case format_kind::NIL:
|
case format_kind::NIL:
|
||||||
case format_kind::LINE:
|
|
||||||
case format_kind::COLOR_BEGIN:
|
case format_kind::COLOR_BEGIN:
|
||||||
case format_kind::COLOR_END:
|
case format_kind::COLOR_END:
|
||||||
return std::make_tuple(s, last);
|
return std::make_tuple(s, last);
|
||||||
|
case format_kind::LINE:
|
||||||
|
return std::make_tuple(s, nullptr);
|
||||||
case format_kind::COMPOSE:
|
case format_kind::COMPOSE:
|
||||||
case format_kind::FLAT_COMPOSE:
|
case format_kind::FLAT_COMPOSE:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue