Epic last minute formatting fix

This commit is contained in:
Carver 2021-07-06 16:31:39 -07:00
parent 05b42b2428
commit eb33edf9ee

View File

@ -269,22 +269,22 @@ refresh:
// syntax highlighting // syntax highlighting
if (syntax_highlighting_enabled) { if (syntax_highlighting_enabled) {
switch (token_type) { switch (token_type) {
case TOK_KEY: case TOK_KEY:
print("\e[36m%c\e[0m", buffer[i]); print("\e[36m%c\e[0m", buffer[i]);
break; break;
case TOK_EQUALS: case TOK_EQUALS:
print("\e[32m%c\e[0m", buffer[i]); print("\e[32m%c\e[0m", buffer[i]);
break; break;
case TOK_VALUE: case TOK_VALUE:
print("\e[39m%c\e[0m", buffer[i]); print("\e[39m%c\e[0m", buffer[i]);
break; break;
case TOK_BADKEY: case TOK_BADKEY:
print("\e[31m%c\e[0m", buffer[i]); print("\e[31m%c\e[0m", buffer[i]);
break; break;
}
} else {
print("%c", buffer[i]);
} }
} else {
print("%c", buffer[i]);
}
// switch to token type 2 after equals sign // switch to token type 2 after equals sign
if (token_type == TOK_EQUALS) token_type = TOK_VALUE; if (token_type == TOK_EQUALS) token_type = TOK_VALUE;