From e2a037befccd95c05c9fb4fa2987a24b8952db8b Mon Sep 17 00:00:00 2001 From: DiamondNether90 Date: Tue, 2 Sep 2025 08:38:54 +1000 Subject: [PATCH] Update docs/highlight.py Fixed mishighlight for negative numbers --- docs/highlight.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/highlight.py b/docs/highlight.py index 4c88aba..bce796c 100644 --- a/docs/highlight.py +++ b/docs/highlight.py @@ -35,6 +35,8 @@ for i in range(lines): color = "\033[32m" elif tempword in keywords: color = "\033[95m" + elif isnumber(tempword) or tempword == "true" or tempword == "false": + color = "\033[96m" elif tempword[0] == "#": incom = True color = "\033[37m" @@ -55,8 +57,6 @@ for i in range(lines): instr = not instr elif tempword[0] == "\'" and tempword[len(tempword)-1] == "\'": color = "\033[92m" - elif isnumber(tempword) or tempword == "true" or tempword == "false": - color = "\033[96m" elif instr: color = "\033[92m" elif incom: