Color status panels by source state
This commit is contained in:
@@ -101,6 +101,12 @@ def classify_sgr(params: str) -> str:
|
||||
return "syntax-comment"
|
||||
if "38;2;231;168;78" in joined:
|
||||
return "syntax-number"
|
||||
if "38;2;238;84;88" in joined:
|
||||
return "diag-error"
|
||||
if "38;2;116;196;171" in joined:
|
||||
return "diag-hint"
|
||||
if "38;2;121;155;224" in joined:
|
||||
return "diag-info"
|
||||
if "48;2;20;18;26" in joined:
|
||||
return "current-line"
|
||||
if "48;2;235;119;84" in joined:
|
||||
@@ -648,6 +654,9 @@ def run_one(mim: Path, root_out: Path, scenario: Scenario) -> tuple[str, Path]:
|
||||
("38;2;116;196;171", "syntax-string"),
|
||||
("38;2;103;93;122", "syntax-comment"),
|
||||
("38;2;231;168;78", "syntax-number"),
|
||||
("38;2;238;84;88", "diag-error"),
|
||||
("38;2;116;196;171", "diag-hint"),
|
||||
("38;2;121;155;224", "diag-info"),
|
||||
):
|
||||
if sgr in raw_text:
|
||||
raw_attrs.add(attr)
|
||||
|
||||
Reference in New Issue
Block a user