don't stop parsing colors at comma

This commit is contained in:
jesopo 2019-11-04 13:33:10 +00:00
parent 2642bd7dac
commit 09fe1c5a70

View file

@ -84,7 +84,7 @@ def _format_tokens(s: str) -> typing.List[str]:
is_background = True is_background = True
color_finished = False color_finished = False
if not char.isdigit() or last_char or color_finished: if color_finished or last_char:
color = foreground color = foreground
if background: if background:
color += ","+background color += ","+background