don't stop parsing colors at comma
This commit is contained in:
parent
2642bd7dac
commit
09fe1c5a70
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue