summaryrefslogtreecommitdiff
path: root/colors.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-31 19:09:50 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-31 19:09:50 -0500
commit68b3e3928e1bd05ebbb56810ae8b7a68ff5f12b0 (patch)
tree72832015fedc7f8230b345e36aa9b0b5efa7cf46 /colors.h
parent58444144fae39d38c155d868cf3aebb8e4ef8dba (diff)
started syntax higlighting (still need to add state to each line)
Diffstat (limited to 'colors.h')
-rw-r--r--colors.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/colors.h b/colors.h
index 7945beb..64d7ca9 100644
--- a/colors.h
+++ b/colors.h
@@ -23,6 +23,13 @@ ENUM_U16 {
COLOR_NO,
COLOR_CANCEL,
+ COLOR_KEYWORD,
+ COLOR_COMMENT,
+ COLOR_PREPROCESSOR,
+ COLOR_STRING,
+ COLOR_CHARACTER,
+ COLOR_NUMBER,
+
COLOR_COUNT
} ENUM_U16_END(ColorSetting);
@@ -50,6 +57,12 @@ static ColorName const color_names[COLOR_COUNT] = {
{COLOR_ERROR_BG, "error-bg"},
{COLOR_ERROR_BORDER, "error-border"},
{COLOR_ACTIVE_TAB_HL, "active-tab-hl"},
+ {COLOR_KEYWORD, "keyword"},
+ {COLOR_COMMENT, "comment"},
+ {COLOR_PREPROCESSOR, "preprocessor"},
+ {COLOR_STRING, "string"},
+ {COLOR_CHARACTER, "character"},
+ {COLOR_NUMBER, "number"},
{COLOR_YES, "yes"},
{COLOR_NO, "no"},
{COLOR_CANCEL, "cancel"}
@@ -106,3 +119,4 @@ static Status color_from_str(char const *str, u32 *color) {
*color = (u32)r << 24 | (u32)g << 16 | (u32)b << 8 | (u32)a;
return true;
}
+