Update docs/highlight.py #15

Merged
max merged 2 commits from DiamondNether90/ground_old_fork:master into master 2025-09-02 20:42:40 +10:00
Showing only changes of commit e2a037befc - Show all commits

View File

@@ -35,6 +35,8 @@ for i in range(lines):
color = "\033[32m" color = "\033[32m"
elif tempword in keywords: elif tempword in keywords:
color = "\033[95m" color = "\033[95m"
elif isnumber(tempword) or tempword == "true" or tempword == "false":
color = "\033[96m"
elif tempword[0] == "#": elif tempword[0] == "#":
incom = True incom = True
color = "\033[37m" color = "\033[37m"
@@ -55,8 +57,6 @@ for i in range(lines):
instr = not instr instr = not instr
elif tempword[0] == "\'" and tempword[len(tempword)-1] == "\'": elif tempword[0] == "\'" and tempword[len(tempword)-1] == "\'":
color = "\033[92m" color = "\033[92m"
elif isnumber(tempword) or tempword == "true" or tempword == "false":
color = "\033[96m"
elif instr: elif instr:
color = "\033[92m" color = "\033[92m"
elif incom: elif incom: